14

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?

Amit Patel
  • 15,609
  • 18
  • 68
  • 106
  • Does anyone know a command line way to disable it so you don't have to commit a change to the repo if that is undesirable? – labyrinth Jun 04 '19 at 16:54

1 Answers1

33

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'
Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
scorix
  • 2,436
  • 19
  • 23