Newbie : how to use MongoDB instead of SQLite3 ?

38 views
Skip to first unread message

Yvon Thoraval

unread,
Oct 21, 2014, 3:08:12 AM10/21/14
to rubyonra...@googlegroups.com
Hey all,

that's the first time I'm posting here.

I'm really a newbie, I did only the blog in "Getting Started with Rails"

I'd like to continue testing Rails but I wonder how to switch from SQLite3 to MongoDB because my datas are here ...

Best

Sathia S

unread,
Oct 21, 2014, 5:37:43 AM10/21/14
to rubyonra...@googlegroups.com
Yvon,

You should search for "mongoid" in rails. Mongoid is one of the adpater for mongodb.

You can below link to get started

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5a54cba5-43e0-4544-9578-7404cd0c16e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
------------------------------------------------------------------------------------------
Regards
sathia

Here I share my experiments with open source.

Yvon Thoraval

unread,
Oct 22, 2014, 2:20:12 AM10/22/14
to rubyonra...@googlegroups.com
OK, fine thanks for the url.

Frederick Cheung

unread,
Oct 22, 2014, 2:24:13 AM10/22/14
to rubyonra...@googlegroups.com


On Tuesday, October 21, 2014 10:37:43 AM UTC+1, Sathia wrote:
Yvon,

You should search for "mongoid" in rails. Mongoid is one of the adpater for mongodb.


Although note that since this isn't SQL, it won't be as simple as just changing your database,yml (as it would be if switching to postgres) - you'll have to regenerate the models.

Fred 
Reply all
Reply to author
Forward
0 new messages