diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-05-01 16:10:34 -0700 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-05-02 11:47:06 -0700 |
commit | 02ca9151a043a4fefbb3f22edd05f0cd392fffaa (patch) | |
tree | 48f57a3542bc20593e83e1ce97591b682d3461bc /activerecord/test | |
parent | 5fe88b11f11bb3b30bc23c57b36be4f027d915ba (diff) | |
download | rails-02ca9151a043a4fefbb3f22edd05f0cd392fffaa.tar.gz rails-02ca9151a043a4fefbb3f22edd05f0cd392fffaa.tar.bz2 rails-02ca9151a043a4fefbb3f22edd05f0cd392fffaa.zip |
Deprecate remove_column with array as an argument
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 5c5c872993..8dde6c6b5a 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -873,6 +873,12 @@ if ActiveRecord::Base.connection.supports_migrations? assert_raise(ArgumentError) { Person.connection.remove_column("funny") } end + def test_remove_column_with_array_as_an_argument_is_deprecated + assert_deprecated /Passing array to remove_columns is deprecated/ do + Person.connection.remove_column("people", ["last_name", "description"]) + end + end + def test_change_type_of_not_null_column assert_nothing_raised do Topic.connection.change_column "topics", "written_on", :datetime, :null => false |