Skip to content

Commit ef679c4

Browse files
committed
Test all check constraints tests for TrilogyAdapter
1 parent ae0dd06 commit ef679c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/test/cases/migration/check_constraint_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Trade < ActiveRecord::Base
2424
t.integer :quantity
2525
end
2626

27-
if current_adapter?(:Mysql2Adapter)
27+
if current_adapter?(:Mysql2Adapter, :TrilogyAdapter)
2828
@connection.create_table "constraint_test", force: true do |t|
2929
t.json :options, default: nil
3030
end
@@ -35,7 +35,7 @@ class Trade < ActiveRecord::Base
3535
@connection.drop_table "trades", if_exists: true rescue nil
3636
@connection.drop_table "purchases", if_exists: true rescue nil
3737

38-
if current_adapter?(:Mysql2Adapter)
38+
if current_adapter?(:Mysql2Adapter, :TrilogyAdapter)
3939
@connection.drop_table "constraint_test", if_exists: true rescue nil
4040
end
4141
end
@@ -54,7 +54,7 @@ def test_check_constraints
5454
assert_equal "price > discounted_price", constraint.expression
5555
end
5656

57-
if current_adapter?(:Mysql2Adapter)
57+
if current_adapter?(:Mysql2Adapter, :TrilogyAdapter)
5858
begin
5959
@connection.add_check_constraint(:constraint_test, <<~SQL,
6060
json_contains('

0 commit comments

Comments
 (0)