mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
Revert "DEV: Upgrade Rails to version 7.1" (#27625)
This reverts commit ce00f83173863c3151f21c5cd03f24e3f6617e5c.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user