diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2012-06-08 06:21:26 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2012-06-08 06:21:26 +0900 |
commit | a74f840750295522cb37ae693a5d28b95dca5165 (patch) | |
tree | 557ed93827283bc08fe0506d7188afc7ae81eaeb /activerecord | |
parent | e638c613d0ecfa44ddc3d328c0979318cf73e33e (diff) | |
download | rails-a74f840750295522cb37ae693a5d28b95dca5165.tar.gz rails-a74f840750295522cb37ae693a5d28b95dca5165.tar.bz2 rails-a74f840750295522cb37ae693a5d28b95dca5165.zip |
Skip two tests with polymorphic if current adapter is Oracle Adapter.
because Oracle Adapter does not support foreign keys if :polymorphic => true is used.
Diffstat (limited to 'activerecord')
-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 |