I'm trying to use mongodb and postgresql simultaneously with Rails
3.1. I believe I have everything set up correctly.

What I'm interested in knowing is how to get rails to flip-flop back-
and-forth between mongoid and activerecord.

For example, if I want to generate an ActiveRecord model after using
mongoid, rails automatically defaults to the Mongoid gem.
rails g model Blogpost
invoke mongoid
create app/models/blogpost.rb
invoke rspec
create spec/models/blogpost_spec.rb

How would I get rails to use ActiveRecord instead, and vice versa?

Thanks in advance


You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
grouprubyonrails-talk @
postedJan 22, '12 at 2:42a
activeJan 24, '12 at 7:12a

2 users in discussion

Mike Kim: 3 posts Neener54: 1 post



site design / logo © 2022 Grokbase