search for: pc_of_tcp

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

2006 Mar 19
3
Can''t add data during migration if column is called "type"
...types do |table| table.column :type_code, :string, :limit => 20, :null => false table.column :description, :string, :limit => 50, :null => false end add_index :deposit_types, :type_code, :unique add_index :deposit_types, :description, :unique [ ["pc_of_tcp", "percentage of total cash price"], ["amount", "amount"], ["payments", "payments"] ].each do |type, description| DepositType.create :type_code => type, :description => description end works, but this......