Method: LolDba::RailsCompatibility.migrator
- Defined in:
- lib/lol_dba/rails_compatibility.rb
.migrator ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/lol_dba/rails_compatibility.rb', line 4 def migrator if ::ActiveRecord::VERSION::MAJOR >= 6 ActiveRecord::Migrator.new(:up, migrations_path, ActiveRecord::SchemaMigration) else ActiveRecord::Migrator.new(:up, migrations_path) end end |