ActiveRecord::Migrator.run(type, "db/migrate/", version)
    elsif less_than_active_record_6_0?
      ActiveRecord::MigrationContext.new('db/migrate/').run(type, version)
    else
      ActiveRecord::MigrationContext.new('db/migrate/', ActiveRecord::SchemaMigration).run(type, version)