On Jun 11, 2008, at 9:12 AM, Mislav Marohnić wrote: > What I like with database.yml is that I don't version it and > therefore I don't keep production passwords in version control. Also > I can have one database in production locally and another on the > remote machine. >
I've done that too. You could get that effect like so: > config.active_record.connection.configure do |db| > case `hostname` > when 'my_laptop' > db.host = 'localhost' > when 'production' > db.host = 'db1' > end > end Or you can stick with database.yml :) -- ~akk http://therealadam.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
