Skip database migration while deploying Rails appl

2019-03-15 12:54发布

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?

1条回答
贪生不怕死
2楼-- · 2019-03-15 13:32

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'
查看更多
登录 后发表回答