Commit e4aefab 1 parent c4456b0 commit e4aefab Copy full SHA for e4aefab
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
## 9.5.0
5
- - Support Rails 7.2
5
+ - Support Rails 7.2 https://github.com/ilyakatz/data-migrate/pull/312
6
6
7
7
## 9.4.2
8
8
- Fix db:prepare: with_data task
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def rails_version_equal_to_or_higher_than_7_0
20
20
21
21
def internal_metadata
22
22
if rails_version_equal_to_or_higher_than_7_2
23
- ActiveRecord ::Base . connection . pool . internal_metadata
23
+ ActiveRecord ::Base . connection_pool . internal_metadata
24
24
elsif rails_version_equal_to_or_higher_than_7_1
25
25
ActiveRecord ::Base . connection . internal_metadata
26
26
else
@@ -30,7 +30,7 @@ def internal_metadata
30
30
31
31
def schema_migration
32
32
if rails_version_equal_to_or_higher_than_7_2
33
- ActiveRecord ::Base . connection . pool . schema_migration
33
+ ActiveRecord ::Base . connection_pool . schema_migration
34
34
elsif rails_version_equal_to_or_higher_than_7_1
35
35
ActiveRecord ::Base . connection . schema_migration
36
36
else
@@ -64,7 +64,7 @@ def data_schema_delete_version(version)
64
64
65
65
def data_schema_migration
66
66
if rails_version_equal_to_or_higher_than_7_2
67
- DataMigrate ::DataSchemaMigration . new ( ActiveRecord ::Tasks ::DatabaseTasks . migration_connection . pool )
67
+ DataMigrate ::DataSchemaMigration . new ( ActiveRecord ::Tasks ::DatabaseTasks . migration_connection_pool )
68
68
elsif rails_version_equal_to_or_higher_than_7_1
69
69
DataMigrate ::DataSchemaMigration . new ( ActiveRecord ::Tasks ::DatabaseTasks . migration_connection )
70
70
else
Original file line number Diff line number Diff line change 108
108
109
109
# schema migration changed in Rails 7.2, from the connection to the pool object.
110
110
def ar_schema_migration
111
- if ActiveRecord ::Base . connection . pool . respond_to? ( :schema_migration )
112
- ActiveRecord ::Base . connection . pool . schema_migration
111
+ if ActiveRecord ::Base . connection_pool . respond_to? ( :schema_migration )
112
+ ActiveRecord ::Base . connection_pool . schema_migration
113
113
else
114
114
ActiveRecord ::Base . connection . schema_migration
115
115
end
You can’t perform that action at this time.
0 commit comments