database_rewinder icon indicating copy to clipboard operation
database_rewinder copied to clipboard

Fix an issue recording table names to wrong cleaner

Open sinsoku opened this issue 5 years ago • 0 comments

DatabaesRewinder finds the wrong cleaner when using the same database name on different hosts.

It occurs with the following database.yml.

default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  username: postgres

test:
  primary:
    <<: *default
    host: main-db
    database: foo_test
  animals:
    <<: *default
    host: sub-db
    database: foo_test
    migrations_paths: db/animals_migrate

sinsoku avatar Jan 14 '20 10:01 sinsoku