Skip to content

Commit

Permalink
Fix typo in SchemaMigration deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebarrie committed Apr 6, 2023
1 parent c18e8ad commit e311e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/migration.rb
Expand Up @@ -1127,7 +1127,7 @@ def initialize(migrations_paths, schema_migration = nil, internal_metadata = nil
ActiveRecord.deprecator.warn(<<-MSG.squish)
SchemaMigration no longer inherits from ActiveRecord::Base. If you want
to use the default connection, remove this argument. If you want to use a
specific connection, instaniate MigrationContext with the connection's schema
specific connection, instantiate MigrationContext with the connection's schema
migration, for example `MigrationContext.new(path, Dog.connection.schema_migration)`.
MSG

Expand All @@ -1138,7 +1138,7 @@ def initialize(migrations_paths, schema_migration = nil, internal_metadata = nil
ActiveRecord.deprecator.warn(<<-MSG.squish)
SchemaMigration no longer inherits from ActiveRecord::Base. If you want
to use the default connection, remove this argument. If you want to use a
specific connection, instaniate MigrationContext with the connection's internal
specific connection, instantiate MigrationContext with the connection's internal
metadata, for example `MigrationContext.new(path, nil, Dog.connection.internal_metadata)`.
MSG

Expand Down

0 comments on commit e311e60

Please sign in to comment.