mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Upgrade Rails to version 7.1
--------- Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:

committed by
Loïc Guitaut

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