Sha256: 957ece426fc77d21bd48cc071eab4826a20911046dcf3cf8a2b5458db2c29859
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
= mongo_modl Rails 3 generator to generate Mongo DB models. Includes model generators for Mongo Mapper and Mongoid. 1. Create new Rails 3 project 2. In Gemfile add gem 'mongo_db_model' 3. In console run $ gem bundle Using Mongo Mapper: a. To set application ORM to Mongo Mapper: # config/application.rb config.generators do |g| g.orm :mongo_mapper end b. Generate Mongo Mapper model $ script/generate mongo_mapper:model post name:string Using Mongoid: a. To set application ORM to Mongoid # config/application.rb config.generators do |g| g.orm :mongoid end b. Generate Mongoid model $ script/generate mongoid:model post name:string Enjoy :) == Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. == Copyright Copyright (c) 2010 Kristian Mandrup. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_db_model-0.3.0 | README.rdoc |