activerecord-clean-db-structure icon indicating copy to clipboard operation
activerecord-clean-db-structure copied to clipboard

Rails 6.1 compatibility: Hook into db:schema:dump, not db:structure:dump

Open lavaturtle opened this issue 4 years ago • 0 comments

In Rails 6.1, running rake db:structure:dump prints a deprecation warning. The db:migrate task appears to invoke db:schema:dump instead. This change allows the cleanup to happen as expected when running migrations in Rails 6.1.

I'm not sure if I should add some code to detect the Rails version and hook into the older db:structure:dump on older versions or ?

lavaturtle avatar Jan 25 '21 15:01 lavaturtle