Using Migrations

How to run migrations

rake db:migrate

Loading the fixture data

When we change the database schema by using migrations, we might also have needed to change the test data in test/fixtures. If this is the case, you can load the new test data like so:

rake db:fixtures:load

This command will load the fixture data in test/fixtures/tablename.yml into your development database. This can be very useful for playing around with the application with some interesting data.