From b2f0a1c184bbdebce8541bcc03aae0a4c907b83c Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Thu, 30 May 2024 17:56:39 +0900 Subject: [PATCH] Remove support for ActiveRecord 6.0 Rails 6.0 has been EOL for a year now. --- .github/workflows/active-record-multi-tenant-tests.yml | 3 +-- Appraisals | 8 -------- README.md | 2 +- activerecord-multi-tenant.gemspec | 2 +- docs/source/getting-started.rst | 2 +- docs/source/troubleshooting.rst | 2 +- 6 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/active-record-multi-tenant-tests.yml b/.github/workflows/active-record-multi-tenant-tests.yml index 49123984..ffe32985 100644 --- a/.github/workflows/active-record-multi-tenant-tests.yml +++ b/.github/workflows/active-record-multi-tenant-tests.yml @@ -47,12 +47,11 @@ jobs: - '3.0' - '3.1' - '3.2' + - '3.3' appraisal: - - rails-6.0 - rails-6.1 - rails-7.0 - rails-7.1 - - active-record-6.0 - active-record-6.1 - active-record-7.0 - active-record-7.1 diff --git a/Appraisals b/Appraisals index 7b1f9086..7c7c3ae6 100644 --- a/Appraisals +++ b/Appraisals @@ -1,9 +1,5 @@ # frozen_string_literal: true -appraise 'rails-6.0' do - gem 'rails', '~> 6.0.3' -end - appraise 'rails-6.1' do gem 'rails', '~> 6.1.0' end @@ -16,10 +12,6 @@ appraise 'rails-7.1' do gem 'rails', '~> 7.1.0' end -appraise 'active-record-6.0' do - gem 'activerecord', '~> 6.0.3' -end - appraise 'active-record-6.1' do gem 'activerecord', '~> 6.1.0' end diff --git a/README.md b/README.md index 34e97d8b..667b908a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ gem 'activerecord-multi-tenant' ## Supported Rails versions -All Ruby on Rails versions starting with 6.0 or newer (up to 7.0) are supported. +All Ruby on Rails versions starting with 6.1 or newer (up to 7.1) are supported. This gem only supports ActiveRecord (the Rails default ORM), and not alternative ORMs like Sequel. diff --git a/activerecord-multi-tenant.gemspec b/activerecord-multi-tenant.gemspec index 0811991c..e9e6805a 100644 --- a/activerecord-multi-tenant.gemspec +++ b/activerecord-multi-tenant.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/citusdata/activerecord-multi-tenant' spec.license = 'MIT' - spec.add_dependency 'rails', '>= 6' + spec.add_dependency 'rails', '>= 6.1' spec.add_development_dependency 'anbt-sql-formatter' spec.add_development_dependency 'codecov' diff --git a/docs/source/getting-started.rst b/docs/source/getting-started.rst index f6aeb123..9191fa84 100644 --- a/docs/source/getting-started.rst +++ b/docs/source/getting-started.rst @@ -32,6 +32,6 @@ Dependencies ``activerecord-multi-tenant`` requires: - Ruby version 3.0.0 or later -- Rails version 6.0.0 or later +- Rails version 6.1.0 or later Please ensure that your application meets these requirements before installing the gem. diff --git a/docs/source/troubleshooting.rst b/docs/source/troubleshooting.rst index 3fb791dc..91426bb4 100644 --- a/docs/source/troubleshooting.rst +++ b/docs/source/troubleshooting.rst @@ -31,7 +31,7 @@ FAQs and Known Limitations **Q: Does ``activerecord-multi-tenant`` support Rails version 5.X?** -**A:** ``activerecord-multi-tenant`` supports Rails 6.0.0 and later. For older versions of Rails, please use the appropriate version of the gem. +**A:** ``activerecord-multi-tenant`` supports Rails 6.1.0 and later. For older versions of Rails, please use the appropriate version of the gem.