Skip to content

Client database switching & Capistrano #3

@laph

Description

@laph

Is there anybody who knows how to run migrations against each database connection specified through the yml files in the /config/databases directory using Capistrano?

I know it's possible to specify the RAILS_ENV when running the migration task, but as the connection details are specified in seperate files rather than in the original database.yml file this doesn't work.

Any ideas?

If so, I'd recommend to add that information to the Wiki of client_database_switching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions