https://github.com/atomicobject/mongoid_class_for_collection
Flexible migrations for mongoid_rails_migrations
https://github.com/atomicobject/mongoid_class_for_collection
Last synced: 10 months ago
JSON representation
Flexible migrations for mongoid_rails_migrations
- Host: GitHub
- URL: https://github.com/atomicobject/mongoid_class_for_collection
- Owner: atomicobject
- Created: 2011-05-27T18:12:34.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2012-03-02T16:03:52.000Z (about 14 years ago)
- Last Synced: 2025-06-08T22:08:10.044Z (11 months ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 25
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Description
===========
The responsible way to work with migrations in mongoid.
Synopsis
========
TODO
### How do I use it?
def self.up
book_model = mongoid_class_for_collection :books do
# The same as Book.all
books = all
end
# or save the class for use just like your real model
puts book_model.first.name
end
end
Authors
=======
* Shawn Anderson (shawn.anderson@atomicobject.com)
* Sivabudh Umpudh (siva@atomicobject.com)
* © 2011 [Atomic Object](http://www.atomicobject.com/)
* More Atomic Object [open source](http://www.atomicobject.com/pages/Software+Commons) projects