Skip to content

Commit 4f23889

Browse files
committed
Drop support for Active Record 7.0 and 7.1
1 parent d41e30f commit 4f23889

File tree

4 files changed

+4
-30
lines changed

4 files changed

+4
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
## [Unreleased]
88

99
### Changed
10-
* Require Ruby ≥ 3.3 ([#813](https://github.com/haines/pg-aws_rds_iam/pull/813))
10+
* Require Ruby ≥ 3.3 and Active Record ≥ 7.2 ([#813](https://github.com/haines/pg-aws_rds_iam/pull/813))
1111

1212
## [0.8.0] - 2026-03-27
1313

bin/version-matrix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ end
1111
gemspec = Gem::Specification.load(File.expand_path("../pg-aws_rds_iam.gemspec", __dir__))
1212

1313
ruby_versions = ["3.3", "3.4", "4.0"]
14-
activerecord_requirement = ">= 7.0"
14+
activerecord_requirement = ">= 7.2"
1515
pg_requirement = gemspec.dependencies.find { |dependency| dependency.name == "pg" }.requirement
1616

1717
versions = ruby_versions.flat_map do |ruby_version|

lib/pg/aws_rds_iam.rb

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,11 @@ def self.auth_token_generators
3131
if defined?(ActiveRecord)
3232
require "active_record/connection_adapters/postgresql_adapter"
3333

34-
if ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.respond_to?(:dbconsole)
35-
require_relative "aws_rds_iam/active_record_postgresql_adapter"
36-
37-
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.singleton_class.prepend ActiveRecordPostgreSQLAdapter
38-
end
39-
34+
require_relative "aws_rds_iam/active_record_postgresql_adapter"
4035
require_relative "aws_rds_iam/active_record_postgresql_database_tasks"
4136

37+
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.singleton_class.prepend ActiveRecordPostgreSQLAdapter
4238
ActiveRecord::Tasks::PostgreSQLDatabaseTasks.prepend ActiveRecordPostgreSQLDatabaseTasks
4339
end
44-
45-
if defined?(Rails::DBConsole) && Rails::DBConsole.private_method_defined?(:find_cmd_and_exec)
46-
require_relative "aws_rds_iam/rails_dbconsole"
47-
48-
Rails::DBConsole.prepend RailsDBConsole
49-
end
5040
end
5141
end

lib/pg/aws_rds_iam/rails_dbconsole.rb

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)