Is there a rake command in Rails 3 to clone my development database data? I noticed rake db:test:prepare
and rake db:test:clone
are mentioned throughout various blogs, but running them seems to do nothing. Furthermore, rake -T
shows no db:test
cases. I've resorted to loading a sql dump for now, but it would be great if I could just clone my existing development data for up-to-date testing.
EDIT --
I desire to test on a database since I am dealing with legacy data that I run through model filters when accessed. Factories won't work for me in this context, since data passed through create
is defined as a different standard than that of the legacy data.