When we run cap deploy
, it runs all the migrations during deployment. We have to point the application to existing DB and don't want modify existing DB.
Can anybody suggest how can we skip the migration step while deploying the application?
scorix
I suppose you are using capistrano/rails.
According to the doc, you can require just what you need manually:
# Capfile
require 'capistrano/bundler'
require 'capistrano/rails/assets'
# require 'capistrano/rails/migrations'
来源:https://stackoverflow.com/questions/28300592/skip-database-migration-while-deploying-rails-application-using-capistrano-3