File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def change
59
59
60
60
def skip_if_unmet_requirements
61
61
if Gem ::Requirement . new ( '>6.1' ) . satisfied_by? ( Gem ::Version . new ( ::ActiveRecord ::VERSION ::STRING ) ) &&
62
- SafePgMigrations . get_pg_version_num ( @ connection) >= 120_000
62
+ SafePgMigrations . get_pg_version_num ( ActiveRecord :: Base . connection ) >= 120_000
63
63
return
64
64
end
65
65
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ def skip_if_unmet_requirements!
127
127
128
128
def met_requirements?
129
129
Gem ::Requirement . new ( '>6.1' ) . satisfied_by? ( Gem ::Version . new ( ::ActiveRecord ::VERSION ::STRING ) ) &&
130
- SafePgMigrations . get_pg_version_num ( @ connection) >= 120_000
130
+ SafePgMigrations . get_pg_version_num ( ActiveRecord :: Base . connection ) >= 120_000
131
131
end
132
132
end
133
133
end
You can’t perform that action at this time.
0 commit comments