> Migrations are not just about creating database tables. Any schema
> change is a migration. Any migration (except those involving
> unrecoverable data loss, which are very rare) should be reversible.
Where do I insert dummy-data in my develop-database? In "Rails Cookbook"
you can see often migrations, which create a table and insert same
Test data does not belong in migrations. That's what fixtures are for. I
don't have the Rails Cookbook, so I can't speak directly to what you've
found in it, but I'm surprised that it would recommend using migrations to
load test data, or even show it as an example.
But if you add an mandatory column to this table the insert will fail
because the mandatory field only exists in the model and not in the
Keep your test data up to date with your schema, but not in your