Actions
Patch #40148
closedUpdate activerecord-sqlserver-adapter to 7.1
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Failed `bundle update`.
% bundle update Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Could not find compatible versions Because rails >= 7.1.3 depends on activerecord = 7.1.3 and activerecord-sqlserver-adapter >= 6.1.0.0.rc1, < 7.0.0.0.rc1 depends on activerecord ~> 6.1.0, rails >= 7.1.3 is incompatible with activerecord-sqlserver-adapter >= 6.1.0.0.rc1, < 7.0.0.0.rc1. So, because Gemfile depends on rails = 7.1.3 and Gemfile depends on activerecord-sqlserver-adapter ~> 6.1.0, version solving has failed. %
The patch below resolves this issue.
diff --git a/Gemfile b/Gemfile
index 1479fa42a9..01a530d4fb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -75,7 +75,7 @@ if File.exist?(database_file)
gem 'sqlite3', '~> 1.7.0'
when /sqlserver/
gem 'tiny_tds', '~> 2.1.2'
- gem 'activerecord-sqlserver-adapter', '~> 6.1.0'
+ gem 'activerecord-sqlserver-adapter', '~> 7.1.2'
else
warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
end
Related issues
Updated by Go MAEDA 7 months ago
- Related to Feature #36320: Migrate to Rails 7.1 added
Updated by Marius BĂLTEANU 7 months ago
- Target version deleted (
6.0.0)
Thanks!
I think this ticket should not be part of the changelog.
Actions