Skip to content

Commit b752380

Browse files
committed
Fixed CI
1 parent 4ff6be6 commit b752380

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/add_exclusion_contraint_test.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class AddExclusionConstraintTest < Minitest::Test
44
def setup
5-
skip unless ActiveRecord::VERSION::STRING.to_f >= 7.1
5+
skip unless exclusion_constraints?
66
super
77
end
88

@@ -13,4 +13,8 @@ def test_basic
1313
def test_new_table
1414
assert_safe AddExclusionConstraintNewTable
1515
end
16+
17+
def exclusion_constraints?
18+
postgresql? && ActiveRecord::VERSION::STRING.to_f >= 7.1
19+
end
1620
end

0 commit comments

Comments
 (0)