File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
activerecord/test/cases/migration Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Trade < ActiveRecord::Base
24
24
t . integer :quantity
25
25
end
26
26
27
- if current_adapter? ( :Mysql2Adapter )
27
+ if current_adapter? ( :Mysql2Adapter , :TrilogyAdapter )
28
28
@connection . create_table "constraint_test" , force : true do |t |
29
29
t . json :options , default : nil
30
30
end
@@ -35,7 +35,7 @@ class Trade < ActiveRecord::Base
35
35
@connection . drop_table "trades" , if_exists : true rescue nil
36
36
@connection . drop_table "purchases" , if_exists : true rescue nil
37
37
38
- if current_adapter? ( :Mysql2Adapter )
38
+ if current_adapter? ( :Mysql2Adapter , :TrilogyAdapter )
39
39
@connection . drop_table "constraint_test" , if_exists : true rescue nil
40
40
end
41
41
end
@@ -54,7 +54,7 @@ def test_check_constraints
54
54
assert_equal "price > discounted_price" , constraint . expression
55
55
end
56
56
57
- if current_adapter? ( :Mysql2Adapter )
57
+ if current_adapter? ( :Mysql2Adapter , :TrilogyAdapter )
58
58
begin
59
59
@connection . add_check_constraint ( :constraint_test , <<~SQL ,
60
60
json_contains('
You can’t perform that action at this time.
0 commit comments