Using Rails Migration on different database than standard “production” or “development”

前端 未结 20 1402
借酒劲吻你
借酒劲吻你 2020-11-29 18:18

I have a rails project running that defines the standard production:, :development and :test DB-connections in config/database.yml

In addition I have a quiz_developm

20条回答
  •  温柔的废话
    2020-11-29 19:08

    You should define the other databases/environments in /config/environments.

    After that you can use the following command to migrate that specific environment.

    rake db:migrate RAILS_ENV=customenvironment
    

提交回复
热议问题