search for: addcodecodedata

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

2006 Jul 10
3
Problem with migrations
...ob, :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 ''uninitalized constant cost_code'' Anyone know what I am doing wrong? 004 class AddCodeCodeData < ActiveRecord::Migration def self.up Costcode.create( :job => ''0'', :code => ''5001'', :description => ''Other administrative (non-job related)'' ) end def self.down Costcode.delete_all end end ---...