Skip to content

Commit e198ba6

Browse files
mlarrazdependabot[bot]
authored andcommitted
Add to CI matrix
1 parent 4d50128 commit e198ba6

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- '3.0'
1717
- '2.7'
1818
activerecord:
19+
- '7.0'
1920
- '6.1'
2021
- '6.0'
2122
- '5.2'

gemfiles/activerecord_7.0.gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: "../"
4+
5+
gem "activerecord", "~> 7.0.0"

spec/support/database.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module ActiveRecord::Import::Connection
1717
ActiveRecord::Base.configurations = YAML.load_file(database_yml)
1818
ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), '../debug.log'))
1919
ActiveRecord::Base.logger.level = ENV['CI'] ? ::Logger::ERROR : ::Logger::DEBUG
20-
config = ActiveRecord::Base.configurations[db_name]
20+
configs = ActiveRecord::Base.configurations
21+
config = configs.try(:find_db_config, db_name) || configs[db_name]
2122

2223
begin
2324
ActiveRecord::Base.establish_connection(db_name.to_sym)

0 commit comments

Comments
 (0)