Topic: cant load a specific fixture (messages.yml)
I have a fixture called messages that I try to load in my mygration using the following code:
f = Fixtures.new(Message.connection, # a database connection
"messages", # table name
Message, # model class
I used the same procedure for every other model/fixture and that one is the only one that doesnt work. I have looked to see if <messages> is a reserved keyword or something and didnt find anything.
The error I get when I run the migration is:
== CreateMessages: migrating ==================================================
uninitialized constant Message
Anyone can help? I use the Message model in a lot of place in my application so I hope I wont have to refactor everything with a new name...
Thanks a lot!