Revert "DEV: Upgrade Rails to version 7.1" (#27625)

This reverts commit ce00f83173863c3151f21c5cd03f24e3f6617e5c.
This commit is contained in:
Loïc Guitaut
2024-06-26 18:55:05 +02:00
committed by GitHub
parent 099cf71bcc
commit f58b844f45
48 changed files with 258 additions and 495 deletions

View File

@ -9,12 +9,11 @@ RSpec.describe Migration::SafeMigrate do
end
def migrate_up(path)
migrations = ActiveRecord::MigrationContext.new(path).migrations
migrations = ActiveRecord::MigrationContext.new(path, ActiveRecord::SchemaMigration).migrations
ActiveRecord::Migrator.new(
:up,
migrations,
ActiveRecord::Base.connection.schema_migration,
ActiveRecord::Base.connection.internal_metadata,
ActiveRecord::SchemaMigration,
migrations.first.version,
).run
end
@ -78,7 +77,7 @@ RSpec.describe Migration::SafeMigrate do
output = capture_stdout { migrate_up(path) }
expect(output).to include("change_column_null(:users, :username, true, nil)")
expect(output).to include("change_column_null(:users, :username, true)")
end
it "supports being disabled" do