We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff6be6 commit b752380Copy full SHA for b752380
1 file changed
test/add_exclusion_contraint_test.rb
@@ -2,7 +2,7 @@
2
3
class AddExclusionConstraintTest < Minitest::Test
4
def setup
5
- skip unless ActiveRecord::VERSION::STRING.to_f >= 7.1
+ skip unless exclusion_constraints?
6
super
7
end
8
@@ -13,4 +13,8 @@ def test_basic
13
def test_new_table
14
assert_safe AddExclusionConstraintNewTable
15
16
+
17
+ def exclusion_constraints?
18
+ postgresql? && ActiveRecord::VERSION::STRING.to_f >= 7.1
19
+ end
20
0 commit comments