![]() We need to modify the Gemfile to remove sqlite3 and add Mongoid. The -skip-active-record is important because it doesn't include ActiveRecord in the app that is generated. Next you're going to need to generate your Rails application with rails new myapp -skip-active-record. If you run mongo in your shell you should get an interactive database prompt: MongoDB shell version: 2.4.6 Sudo echo "deb dist 10gen" | tee -a /etc/apt//10gen.list Installing MongoDBįirst let's install MongoDB from their official repository: sudo apt-key adv -keyserver -recv 7F0CEB10 Today we're going to walk through installing it on Ubuntu and setting up Rails with MongoDB and Mongoid to replace ActiveRecord. We've been using it a lot lately for prototyping at Efeqdev and have thoroughly enjoyed it. It's a NoSQL document store that makes for a very interesting method of development compared to relational databases. If you've never checked out MongoDB before, I'd very much encourage you to. Setting Up Rails 4 with MongoDB and Mongoid Overview
0 Comments
Leave a Reply. |