File tree 1 file changed +3
-0
lines changed
activerecord/test/cases/migration
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ def test_creates_index_with_options
51
51
end
52
52
53
53
def test_creates_polymorphic_index
54
+ return skip "Oracle Adapter does not support foreign keys if :polymorphic => true is used" if current_adapter? :OracleAdapter
55
+
54
56
connection . create_table table_name do |t |
55
57
t . references :foo , :polymorphic => true , :index => true
56
58
end
@@ -86,6 +88,7 @@ def test_does_not_create_index_for_existing_table_explicit
86
88
end
87
89
88
90
def test_creates_polymorphic_index_for_existing_table
91
+ return skip "Oracle Adapter does not support foreign keys if :polymorphic => true is used" if current_adapter? :OracleAdapter
89
92
connection . create_table table_name
90
93
connection . change_table table_name do |t |
91
94
t . references :foo , :polymorphic => true , :index => true
You can’t perform that action at this time.
0 commit comments