Yaml Db plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install git://github.com/adamwiggins/yaml_db.git
rake db:data:dump # Dump contents of Rails database to db/data.yml rake db:data:load # Load contents of db/data.yml into the database
Further, there are tasks db:dump and db:load which do the entire database (the equivalent of running db:schema:dump followed by db:data:load).
== Examples
One common use would be to switch your data from one database backend to another. For example, let's say you wanted to switch from SQLite to MySQL. You might execute the following steps:
1. rake db:dump
2. Edit config/database.yml and change your adapter to mysql, set up database params
3. mysqladmin create [database name]
4. rake db:load
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | Back in time (2 older versions) | Last edited by: scott, 4 months ago

