Mongomapper_rails3_ext is a project mainly written in Ruby, based on the MIT license.
Rails 3 extras for Mongo Mapper, incl. db rake tasks
Adds support for db rake tasks and configuring the database using a yaml file following Rails conventions
gem install mongomapper_rails3_ext
or in Rails Gemfile
gem 'mongomapper_rails3_ext'
And run bundle install
in the terminal in Rails.root
Define a file 'mongo_mapper.yaml' file in the /config directory of your rails app.
defaults: &defaults host: localhost development: <<: *defaults database: mongo_mapper
Define your seed data in db/seeds.rb
Run rake task in terminal:
rake db:seed
Run rake -T
to see all available tasks ;)
Enjoy!
This gem is based on the railtie of mongoid and has not been thorougly tested. Feel free to fix any bugs, come with suggestions etc.
Copyright (c) 2010 Kristian Mandrup. See LICENSE for details.