Displaying 1 result from an estimated 1 matches for "createcostcod".
Did you mean:
createcostcodes
2006 Jul 10
3
Problem with migrations
...r => ''1234'',
:name => ''Bob B'',
:location => ''Office'',
:department => ''07'',
:company_code => ''003'')
end
def self.down
Employee.delete_all
end
end
003
class CreateCostCodes < ActiveRecord::Migration
def self.up
create_table :cost_codes do |t|
t.column :job, :integer
t.column :code, :integer
t.column :description, :string
end
end
def self.down
drop_table :cost_codes
end
end
This is the migration that fails with an error of...