Open
Description
# Gemfile.lock
activerecord (5.2.0)
activemodel (= 5.2.0)
$ rails storey:rollback
NoMethodError: undefined method `rollback’ for ActiveRecord::Migrator:Class
This is because storey uses ActiveRecord::Migrator.rollback
in
Line 36 in 68cab0c
ActiveRecord::Migrate
class of active-record 5.2.0
.
https://www.rubydoc.info/gems/activerecord/ActiveRecord/5.2.0/Migrator
Proposal
We can create a RollbackStrategy
class/multiplexer that executes the correct rollback implementation based on the Rails version.
Apartment
gem users also experienced this and implemented a similar fix influitive/apartment@06d80f0
Metadata
Metadata
Assignees
Labels
No labels