refinerycms
refinerycms copied to clipboard
extension migration rollback fails
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