Skip to content
Browse files

Sequel test dbs need to be migrated manually.

  • Loading branch information...
1 parent dd406b5 commit dafc58208d193c5c2a28ba31997c9189cac6766b @jdunphy jdunphy committed Jan 24, 2009
View
8 book-content/en/5-interacting-with-the-database-sequel/2-database-migrations.markdown
@@ -50,4 +50,10 @@ After editing the migration, it can be run with a rake task.
$ rake sequel:db:migrate
-A VERSION flag can be specified to roll back to particular migration versions.
+A VERSION flag can be specified to roll back to particular migration versions.
+
+A database for the test environment will not built automatically.
+To run tests, the test database will need to be migrated as well.
+A MERB\_ENV variable can be passed to the rake task.
+
+ $ rake sequel:db:migrate MERB_ENV=test

0 comments on commit dafc582

Please sign in to comment.
Something went wrong with that request. Please try again.