From d27cf70823aae24592864f7a7fb7123ca78a7497 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicol=C3=A1s=20Hock-Isaza?=
 <nhocki@users.noreply.github.com>
Date: Wed, 15 Dec 2021 21:51:43 -0500
Subject: [PATCH] Support ActiveRecord 7.0

---
 .github/workflows/ci.yml      | 2 +-
 flipper-active_record.gemspec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b60a618d8..4182c274e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,7 +16,7 @@ jobs:
     strategy:
       matrix:
         ruby: ['2.5', '2.6', '2.7']
-        rails: ['5.2', '6.0.0', '6.1.0']
+        rails: ['5.2', '6.0.0', '6.1.0', '7.0.0']
     env:
       SQLITE3_VERSION: 1.4.1
       REDIS_URL: redis://localhost:6379/0
diff --git a/flipper-active_record.gemspec b/flipper-active_record.gemspec
index 187bbd074..60fb24a85 100644
--- a/flipper-active_record.gemspec
+++ b/flipper-active_record.gemspec
@@ -25,5 +25,5 @@ Gem::Specification.new do |gem|
   gem.metadata      = Flipper::METADATA
 
   gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
-  gem.add_dependency 'activerecord', '>= 4.2', '< 7'
+  gem.add_dependency 'activerecord', '>= 4.2', '< 8'
 end