public
Description: Development data serialization for Rails
Homepage:
Clone URL: git://github.com/janv/dbserialize.git
Mon Jan 19 12:16:22 -0800 2009
commit  885ac757b49ca8ec180b636c9f09f616e665925a
tree    67f4cabd92761a0ab519e2203fb946da4409a013
parent  bb9710f5802eea4c990d9ac1afd67fd9ab693849
name age message
file MIT-LICENSE Loading commit data...
file README.textile
directory tasks/
README.textile

DBSERIALIZE

Dbserialize provides two rake tasks to store your current environments database
tables to Yaml fixtures in db/fixtures and to fill the database with these
fixtures.

That way it’s possible to store sample data consistently in the repository and
for all developers on a project to use common sample data instead of manually
generating something on every developer machine or sending database dumps around
via email.

INSTALL

You can easily add it to your rails project (from your rails app root)

  git submodule add git://github.com/janv/dbserialize.git vendor/plugins/dbserialize

or get it from github through git

  git clone git://github.com/sebastiandeutsch/smile-designer-smile.git

You can keep it fresh with

  git submodule init
  # or
  git submodule update

USAGE

To save your database to Yaml call

  rake db:serialize:save

To resore the database from the fixtures call

  rake db:serialize:load

To only export certain tables, set the FIXTURES environment variable to a list
of table names seperated by commas:

  rake FIXTURES="users,posts" db:serialize:save

LEGAL

Copyright © 2007-2008 [Jan Varwig], released under the MIT license