Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: allow me to turn off automatic database migrations #199
This has been discussed in #167, but that PR has since been abandoned. I am moving the discussion here.
Right now capistrano-rails attempts to run database migrations on every deploy. This is undesirable for some applications according to the following comments (see below, copied and pasted from #167).
Ideally capistrano-rails would provide both of these things:
This might be somewhat fixable by adding:
if ENV['RUN_MIGRATIONS'].present? require 'capistrano/rails/migrations' end
to the Capfile, and then by running:
RUN_MIGRATIONS=true bundle exec cap production deploy:migrate
Is this a sane solution to this issue?
I'm beginning to wonder whether it would make sense to create some sort of "cookbook" page on the website with all of these solution types of things. I've closed a couple of tickets because someone found a decent workaround which we could document there. I'm not sure I want to add everything to the readme.