amatsuda / database_rewinder

minimalist's tiny and ultra-fast database cleaner
MIT License
807 stars 91 forks source link

Use database configuration itself as a cache key #42

Closed eagletmt closed 7 years ago

eagletmt commented 7 years ago

When there's multiple DB entries with the same database name, table names are cached wrongly.

test:
  adapter: mysql2
  database: rewinder_test
test_pg:
  adapter: postgresql
  database: rewinder_test
amatsuda commented 7 years ago

Just published 0.6.5 gem release with this fix. Thanks! https://rubygems.org/gems/database_rewinder/versions/0.6.5