This repository was archived by the owner on Aug 26, 2025. It is now read-only.
forked from hanabokuro/activerecord-turntable
-
Notifications
You must be signed in to change notification settings - Fork 7
Try Support ActiveRecord 6.1.Z #25
Draft
matsubara0507
wants to merge
18
commits into
support-ruby3.0
Choose a base branch
from
try-support-ar6.1.Z
base: support-ruby3.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b653093
use rails 6.1
matsubara0507 28ce04f
fix retrieve_connection_pool args for ar6.1
matsubara0507 4286cea
fix rm spec from ar6.1
matsubara0507 727d071
fix add_to_transaction args for ar6.1
matsubara0507 977988b
fix frozen attribute_names for AR6.1
matsubara0507 823a316
merge PR #41082 in rails
matsubara0507 8e59273
fix for froozen VALID_OPTIONS
matsubara0507 bcf1897
fix configuration on migrate for AR6.1
matsubara0507 1a13997
fix require thread_safe
matsubara0507 3ef87ec
define ar60_or_later?
matsubara0507 866735d
update rspec-rails gems for AR6.1
matsubara0507 115736d
fix fixture for legacy_saved_pool_config from AR6.1
matsubara0507 d359d69
fix update_attributes method in test for AR6.0
matsubara0507 f4e542b
fix dumper test with charset from AR6.1
matsubara0507 0cc4d74
update unsupported proxy method in test
matsubara0507 ae99e24
add ar6.1.z to appraisals and actions
matsubara0507 f6f9c3b
update unsupported proxy method in test for AR6.1.0 and 6.1.1
matsubara0507 5056118
drop bundler v1
matsubara0507 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.0.0" | ||
| gem "actionview", "~> 6.1.0.0" | ||
| gem "activerecord", "~> 6.1.0.0" | ||
| gem "activesupport", "~> 6.1.0.0" | ||
| gem "railties", "~> 6.1.0.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.1.0" | ||
| gem "actionview", "~> 6.1.1.0" | ||
| gem "activerecord", "~> 6.1.1.0" | ||
| gem "activesupport", "~> 6.1.1.0" | ||
| gem "railties", "~> 6.1.1.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.2.0" | ||
| gem "actionview", "~> 6.1.2.0" | ||
| gem "activerecord", "~> 6.1.2.0" | ||
| gem "activesupport", "~> 6.1.2.0" | ||
| gem "railties", "~> 6.1.2.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.3.0" | ||
| gem "actionview", "~> 6.1.3.0" | ||
| gem "activerecord", "~> 6.1.3.0" | ||
| gem "activesupport", "~> 6.1.3.0" | ||
| gem "railties", "~> 6.1.3.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.4.0" | ||
| gem "actionview", "~> 6.1.4.0" | ||
| gem "activerecord", "~> 6.1.4.0" | ||
| gem "activesupport", "~> 6.1.4.0" | ||
| gem "railties", "~> 6.1.4.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.5.0" | ||
| gem "actionview", "~> 6.1.5.0" | ||
| gem "activerecord", "~> 6.1.5.0" | ||
| gem "activesupport", "~> 6.1.5.0" | ||
| gem "railties", "~> 6.1.5.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.6.0" | ||
| gem "actionview", "~> 6.1.6.0" | ||
| gem "activerecord", "~> 6.1.6.0" | ||
| gem "activesupport", "~> 6.1.6.0" | ||
| gem "railties", "~> 6.1.6.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file was generated by Appraisal | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "rails", "~> 6.1.7.0" | ||
| gem "actionview", "~> 6.1.7.0" | ||
| gem "activerecord", "~> 6.1.7.0" | ||
| gem "activesupport", "~> 6.1.7.0" | ||
| gem "railties", "~> 6.1.7.0" | ||
| gem "mysql2", "~> 0.5.2" | ||
|
|
||
| gemspec path: "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,16 +83,11 @@ def setup_fixtures(config = ActiveRecord::Base) | |
| @fixture_connections = [] | ||
| @@already_loaded_fixtures ||= {} | ||
| @connection_subscriber = nil | ||
| @legacy_saved_pool_configs = Hash.new { |hash, key| hash[key] = {} } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. legacyって何に使うっけ
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. この辺りは |
||
| @saved_pool_configs = Hash.new { |hash, key| hash[key] = {} } | ||
|
|
||
| # Load fixtures once and begin transaction. | ||
| if run_in_transaction? | ||
|
|
||
| # # Support AciveRecrd version 6.0.4 | ||
| # # https://github.com/rails/rails/blame/v6.0.4/activerecord/lib/active_record/test_fixtures.rb#L115 | ||
| if ActiveRecord::Turntable::Util.ar_version_equals_or_later?("6.0.4") | ||
| @saved_pool_configs = Hash.new { |hash, key| hash[key] = {} } | ||
| end | ||
|
|
||
| if @@already_loaded_fixtures[self.class] | ||
| @loaded_fixtures = @@already_loaded_fixtures[self.class] | ||
| else | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍