search for: createcatalog

Displaying 1 result from an estimated 1 matches for "createcatalog".

Did you mean: createcatalogs
2009 Apr 09
4
create_table with unique combo
I need to create a table replacing default integer id with a string id and making a combo of (id and version) unique primary key. Here is what I''ve got so far. class CreateCatalogs < ActiveRecord::Migration def self.up create_table :catalogs, :id => false do |t| t.string :id, :limit => 20, :null => false t.string :version, :default => ''01'' t.timestamps end end def self.down drop_table :catalogs end end...