octopus icon indicating copy to clipboard operation
octopus copied to clipboard

Octopus causing migrations to be run against shards.yml database when running migrations

Open theirishpenguin opened this issue 7 years ago • 2 comments

Migrations in my project are expected to be run against the config/database.yml db. But I noticed that they were being run against the shard database instead.

This solution works around the problem but just wanted to let you know of the bug.

Stack

  • rails 5.0.1
  • ar-octopus 0.9.0
  • mysql2 gem 0.4.4
  • pg gem 0.18.4
  • Bundler version 1.13.7
  • rake, version 12.0.0
  • OS Ubuntu 14.04.2 LTS
  • mysql Ver 14.14 Distrib 5.5.43, for debian-linux-gnu (x86_64) using readline 6.3 [used in shards.yml]
  • PostgreSQL 9.4.4 [used in database.yml]

theirishpenguin avatar Apr 20 '17 14:04 theirishpenguin

Unfortunately the page in question disappeared from the Wiki -- what was your solution here?

ngottlieb avatar Jun 21 '18 21:06 ngottlieb

are you using capistrano? i have the same issue with capistrano on deploy

abelorian avatar Jul 18 '19 16:07 abelorian