github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

janv / dbserialize

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • gem
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Development data serialization for Rails — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Readme changed 
sebastiandeutsch (author)
Tue Jan 20 10:27:44 -0800 2009
commit  d556e6a975770543a3da578b580a2b48e76b8007
tree    56499e5b12547086fbba47009442d20809de6206
parent  885ac757b49ca8ec180b636c9f09f616e665925a
dbserialize /
name age
history
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.

Please read on the blog post.

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/janv/dbserialize.git vendor/plugins/dbserialize

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:

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

LEGAL

Copyright © 2007-2009 Jan Varwig, released under the MIT license

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server