refinerycms icon indicating copy to clipboard operation
refinerycms copied to clipboard

extension migration rollback fails

Open javinto opened this issue 7 years ago • 0 comments

When I run a db:rollback to rollback migrations generated by an extension it fails with the exception

wrong number of arguments (given 1, expected 0)

triggered by the following code ::Refinery::Page.delete_all({:link_url => "/my_extension"})

This should be: ::Refinery::Page.where({:link_url => "/my_extension"}).delete_all

The same goes for the .destroy_all command.

RefineryCMS 4.0.3, Rails 5.1.6

javinto avatar Nov 24 '18 20:11 javinto