Skip to content

Commit 7495b26

Browse files
committed
Merge pull request rails#6667 from yahonda/skip_polymorphic_index_with_oracle
Skip two tests with polymorphic if current adapter is Oracle Adapter.
2 parents 6dfcc1b + a74f840 commit 7495b26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

activerecord/test/cases/migration/references_index_test.rb

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def test_creates_index_with_options
5151
end
5252

5353
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+
5456
connection.create_table table_name do |t|
5557
t.references :foo, :polymorphic => true, :index => true
5658
end
@@ -86,6 +88,7 @@ def test_does_not_create_index_for_existing_table_explicit
8688
end
8789

8890
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
8992
connection.create_table table_name
9093
connection.change_table table_name do |t|
9194
t.references :foo, :polymorphic => true, :index => true

0 commit comments

Comments
 (0)