diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-03 13:26:21 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-03 13:27:08 -0200 |
commit | fa0aebf320995a598c5bffda729aed4429681f3a (patch) | |
tree | 429dc9fe708695fb1103ad69e20bb9ffa20ddccc /activerecord/test | |
parent | c449462f45d342258a01313c0ff46279d268719d (diff) | |
download | rails-fa0aebf320995a598c5bffda729aed4429681f3a.tar.gz rails-fa0aebf320995a598c5bffda729aed4429681f3a.tar.bz2 rails-fa0aebf320995a598c5bffda729aed4429681f3a.zip |
Check if the options value is present before to send the deprecation
message
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/references_statements_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration/references_statements_test.rb b/activerecord/test/cases/migration/references_statements_test.rb index 144302bd4a..d8a6565d54 100644 --- a/activerecord/test/cases/migration/references_statements_test.rb +++ b/activerecord/test/cases/migration/references_statements_test.rb @@ -64,7 +64,7 @@ module ActiveRecord remove_reference table_name, :supplier refute index_exists?(table_name, :supplier_id) end - + def test_does_not_delete_reference_type_column with_polymorphic_column do remove_reference table_name, :supplier @@ -73,7 +73,7 @@ module ActiveRecord assert column_exists?(table_name, :supplier_type, :string) end end - + def test_deletes_reference_type_column with_polymorphic_column do remove_reference table_name, :supplier, polymorphic: true |