Rails working with multiple databases customize the generator | Rails, multiple databases, customize generator

In ROR working with multiple databases ( Mysql + MongoID or Postgres + MongoId ) for performance is good, but how can i give default generator database to pick-up while generating the models
edit application.rb in config folder and add below code
config.generators do |g|
g.orm             :active_record
end
So every time in next generators will take active record as default for moddels
In case of using mongoid and active record this will be helpful

Comments

Popular posts from this blog

Rails Memcache issues

scp command usage guide

ROR HEROKU Working with file storage like paperclip in heroku for free of cost ( paperclip and dropbox) paperclip-dropbox config | ROR, HEROKU, file storage, paperclip, in heroku, free of cost, paperclip, dropbox, paperclip-dropbox config