Skip database migration while deploying Rails application using Capistrano 3

前端 未结 1 1807
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 14:03

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.

C

1条回答
  •  时光说笑
    2021-02-05 14:52

    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'
    

    0 讨论(0)
提交回复
热议问题