On 15/08/2012, at 2:41 PM, Nathan de Vries <[email protected]> wrote: > Couldn't you create a script or rake task which outputs a branch-specific > database name? That way you'd have: > development: > adapter: postgresql > database: <%= `rake db:branch_specific_database_name` -%> > timeout: 5000 > host: /var/pgsql_socket
Absolutely you could, though, make sure you don't load the environment in the process. But I use this because it takes no code changes in the underlying code, is specific to my machine and all changes live in the database.yml file which is usually git ignored anyway. Mikel -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" 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/rails-oceania?hl=en.
