Topic: Loading Schema Troubles
Hi Railsforum members,
I'm beginning to us RSpec and I generate a user model and run a spec on it
I need a table called users, so I rake db:migrate and it creates a new table.
I run spec again but then I think its needs some fields.
I delete my migrate file and just manually update my schema file
then I run db:schema:load so that it commits the changes to my database.
It's updated schema_info but not the users table. (in my development database)
I check my test database and there are no tables at all.
Which is kind of important since rspec is looking at my test database.
I made sure early on to enable in my environments.rb this line because I'm suppose to have it enable for whatever reason. I forgot what the comments are trying to tell me what this line do but I remember that if it wasn't enabled that things would commit to the database running a migration
why is my test database empty?
how do I get my schema to update?
what are the best practices for working with migrations?
Last edited by OmenKing (2007-05-26 16:33:55)