This is what works for us: config.database = ENV['DATABASE_YML'] # rails 3.0.x config.paths['config/database'] = ENV['DATABASE_YML'] # rails 3.1
- Ketan studios.thoughtworks.com | twitter.com/ketanpkr On Sat, Oct 1, 2011 at 8:14 AM, radhames brito <[email protected]> wrote: > Hello, ¿I would like to know if there is any plans in the future to > allow specifying a path for the database.yml? I have several apps that > share a db and i think is a little redundant to have to copy the > database.yml to each, also the file is out of my repo and i dont like the > idea of using a symlink. It would be better if i could just specify the path > in the application.rb. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
