Permalink
Browse files

Merge pull request #6219 from frodsan/fix_build

Fix build - 3.2
  • Loading branch information...
2 parents b003ddf + ba48e23 commit 8f5079f190c849b2fb4de24739af742cc5a9e37b @drogus drogus committed May 9, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 activerecord/test/cases/migration_test.rb
@@ -874,9 +874,17 @@ def test_remove_column_no_second_parameter_raises_exception
end
def test_remove_column_with_array_as_an_argument_is_deprecated
+ ActiveRecord::Base.connection.create_table(:hats) do |table|
+ table.column :hat_name, :string, :limit => 100
+ table.column :hat_size, :integer
+ table.column :hat_style, :string, :limit => 100
+ end
+
assert_deprecated /Passing array to remove_columns is deprecated/ do
- Person.connection.remove_column("people", ["last_name", "description"])
+ Person.connection.remove_column("hats", ["hat_name", "hat_size"])
end
+ ensure
+ ActiveRecord::Base.connection.drop_table(:hats)
end
def test_change_type_of_not_null_column

0 comments on commit 8f5079f

Please sign in to comment.