mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
DEV: Revert rails 7.1 upgrade (#27522)
* Revert "FIX: Set `override_level` on Logster loggers (#27519)" This reverts commit c1b0488c547bca935de51cfbb86bbc528e9ab2e5. * Revert "DEV: Make parameters optional to all FakeLogger methods" This reverts commit 3318dad7b4e3365854319bb55301cf667a2c28d0. * Revert "FIX: Remove references to `Rails.logger.chained`" This reverts commit f595d599dd361b7fb39fb3c82cbc11d19d518c19. * Revert "DEV: Upgrade Rails to 7.1" This reverts commit 081b00391e47a7f9bc44b9fe8ce88ac97d728352.
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