Actions
Patch #43648
closedUpdate activerecord-sqlserver-adapter to 8.1
Description
`bundle update` failed to r24248.
% bundle update [DEPRECATED] Pass --all to `bundle update` to update everything [DEPRECATED] Platform :mingw, :x64_mingw, :mswin will be removed in the future. Please use platform :windows instead. Fetching gem metadata from https://rubygems.org/........ Resolving dependencies... Could not find compatible versions Because rails >= 8.1.1 depends on activerecord = 8.1.1 and activerecord-sqlserver-adapter >= 8.0.0, < 8.1.0 depends on activerecord ~> 8.0.0, rails >= 8.1.1 is incompatible with activerecord-sqlserver-adapter >= 8.0.0, < 8.1.0. So, because Gemfile depends on rails = 8.1.1 and Gemfile depends on activerecord-sqlserver-adapter ~> 8.0.8, version solving has failed.
The patch below resolves this issue.
diff --git a/Gemfile b/Gemfile
index e524e3c9a..ec1bd461e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -83,8 +83,8 @@ if File.exist?(database_file)
when /sqlite3/
gem 'sqlite3', '~> 2.7.4'
when /sqlserver/
- gem 'tiny_tds', '~> 2.1.2'
- gem 'activerecord-sqlserver-adapter', '~> 8.0.8'
+ gem 'tiny_tds', '~> 3.4'
+ gem 'activerecord-sqlserver-adapter', '~> 8.1.2'
else
warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
end
ref. https://rubygems.org/gems/activerecord-sqlserver-adapter
Related issues
Updated by Go MAEDA 1 day ago
- Related to Feature #43205: Update to Rails 8 added
Actions