Is there any trivial way to copy the data from developmenet database into the test one? I know theres a way to copy schema and recreate database, but is there any rake task to populate test database with development one?
+2
A:
You can use:
rake db:test:clone
To copy the development db into test.
Toby Hede
2010-04-15 12:19:31
Doesn't work for me at all. Structure is created, but no records are copied. Is that task ment to copy the data at all? The description isn't pointing that directly.
mdrozdziel
2010-04-15 12:56:20
+1
A:
You can use mysql directly:
mysqldump app_development | mysql app_test
ndp
2010-04-18 02:28:21