aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/migration_test.rb6
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