rake db:fixtures:load
The YAML file which I put in the test/fixtures following is imported automatically by DB. Is there a method that converts the contents of the database into a YAML file for fixtures?
rake db:fixtures:load
The YAML file which I put in the test/fixtures following is imported automatically by DB. Is there a method that converts the contents of the database into a YAML file for fixtures?
There's a great plugin called yaml_db. I used it a couple of time to migrate data from one database to an other.