Skip to content

ayraju/mongodb_rails_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== Mongodb Rails Example App ==

Benefits:

  • Without Active record querying

  • No Sql

  • No migrations

  • No Associations complexity

  • We can interact with MongoDB through rails by using the ruby libraries as follow, Earlier we have ORM mappers with Activerecord but mongo is object document database Mongo ODM-mappers are : mongoid,mongomapper,mongomatic ..etc

    By mongoid process:

    • Create new app rails new sample --skip-active-record

    • gem 'mongoid'

    • Generate mongoid config as mongoid.yml file keep it as usual.

    then start your app, nope with migrations everthing will be smooth now...

    Thank you,

    If any queries please contact me, [email protected]

About

MongoDB with rails by mongoid ruby library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published