diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-07 14:51:52 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-07 14:51:52 -0700 |
commit | 7495b262cf9c1046595d8967d898d197d9764b9c (patch) | |
tree | 4e48d5ba2f8e5cac287542107f4e2862e8526c2d /activerecord/test | |
parent | 6dfcc1b21de544a9c0f715d8acb8ee8829947c47 (diff) | |
parent | a74f840750295522cb37ae693a5d28b95dca5165 (diff) | |
download | rails-7495b262cf9c1046595d8967d898d197d9764b9c.tar.gz rails-7495b262cf9c1046595d8967d898d197d9764b9c.tar.bz2 rails-7495b262cf9c1046595d8967d898d197d9764b9c.zip |
Merge pull request #6667 from yahonda/skip_polymorphic_index_with_oracle
Skip two tests with polymorphic if current adapter is Oracle Adapter.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/references_index_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/references_index_test.rb b/activerecord/test/cases/migration/references_index_test.rb index 8ab1c59724..264a99f9ce 100644 --- a/activerecord/test/cases/migration/references_index_test.rb +++ b/activerecord/test/cases/migration/references_index_test.rb @@ -51,6 +51,8 @@ module ActiveRecord end def test_creates_polymorphic_index + return skip "Oracle Adapter does not support foreign keys if :polymorphic => true is used" if current_adapter? :OracleAdapter + connection.create_table table_name do |t| t.references :foo, :polymorphic => true, :index => true end @@ -86,6 +88,7 @@ module ActiveRecord end def test_creates_polymorphic_index_for_existing_table + return skip "Oracle Adapter does not support foreign keys if :polymorphic => true is used" if current_adapter? :OracleAdapter connection.create_table table_name connection.change_table table_name do |t| t.references :foo, :polymorphic => true, :index => true |