Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a rake task that will extract the current db database contents into fixtures
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tasks
MIT_LICENSE re-released everything under the MIT licence, added http_authenticati…
README
Rakefile
init.rb

README

db:fixtures:dump
================

a rake task that will extract the current db database contents into fixtures

the fixtures are by default keyed by classname_id, but this can be overriden
by defining 'self.fixture_name_column' on the model

the method can either return a string, which will be a column name to use as
the key, or it can return a proc which takes the instance as a parameter,
allowing complex keys

Written By:  Piotr Banasik <piotr.banasik@gmail.com>
Released: 2006-08-21
License: MIT, please check included document
Something went wrong with that request. Please try again.