database_rewinder
database_rewinder copied to clipboard
Fix an issue recording table names to wrong cleaner
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