(PROJECT NEEDS NEW MAINTAINER) Seed Fu-like functionality for Mongoid
Go to file
John Bintz 83da44aecb initial commit 2013-02-20 13:09:29 -05:00
lib initial commit 2013-02-20 13:09:29 -05:00
.gitignore initial commit 2013-02-20 13:09:29 -05:00
Gemfile initial commit 2013-02-20 13:09:29 -05:00
LICENSE.txt initial commit 2013-02-20 13:09:29 -05:00
README.md initial commit 2013-02-20 13:09:29 -05:00
Rakefile initial commit 2013-02-20 13:09:29 -05:00
seed-fu-mongoid.gemspec initial commit 2013-02-20 13:09:29 -05:00

README.md

I missed Seed Fu when I was working on a Mongoid app, so I hacked this together in about 20 minutes. No tests whatsoever but it works with my very simple Seed Fu-like seed data, so if you like it, contribute some tests!

Usage

Seed files in db/fixtures/*.rb:

PermissionType.seed(id: 1, type: 'Users')
PermissionType.seed(id: 2, type: 'Sites')
PermissionType.seed(id: 3, type: 'Cats')

Then rake db:seed_fu if you're in Rails.

Simple!

Capistrano

require 'seed-fu-mongoid/capistrano' to have your data get re-seeded on deploy.