I am running into a problem with two of my tables and the
“uninitialized constant” error when using migration.
I get the “uninitialized constant Note” when running the following
code in my migration file:
create_table :notes do |t|
t.column :id, :integer
t.column :noteshare_id, :integer
t.column :title, :string
t.column :covered, :string
t.column :content, :text
t.column :created_at, :datetime
t.column :updated_at, :datetime
end
Note.create_versioned_table
The same thing happens with:
create_table :faculties do |t|
t.column :id, :integer
t.column :school_id, :integer
t.column :name, :string
t.column :created_at, :datetime
t.column :updated_at, :datetime
end
Faculty.create :school_id => 1, :name => "Faculty of Engineering
and Computer Science"
Anyone can give me some insight into my problem please
Would be greatly appreciated :-).
Your Friend,
John K.
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
http://cusec.soen.info - software engineering conference