aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-02-02 16:08:31 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-02-02 16:08:31 -0200
commit37ce852c51af9268910d1f69ab2a884962e97701 (patch)
tree395ecb91e0acef377af8a94496aac0158a6ceadb /activerecord/test/cases/migration
parent55686ae5c9d1bfd30006443b9fa83e4a016280a1 (diff)
downloadrails-37ce852c51af9268910d1f69ab2a884962e97701.tar.gz
rails-37ce852c51af9268910d1f69ab2a884962e97701.tar.bz2
rails-37ce852c51af9268910d1f69ab2a884962e97701.zip
columns method doesn't have name argument
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r--activerecord/test/cases/migration/rename_column_test.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/activerecord/test/cases/migration/rename_column_test.rb b/activerecord/test/cases/migration/rename_column_test.rb
index 2e7e533ed6..16e09fd80e 100644
--- a/activerecord/test/cases/migration/rename_column_test.rb
+++ b/activerecord/test/cases/migration/rename_column_test.rb
@@ -130,25 +130,24 @@ module ActiveRecord
add_column 'test_models', 'age', :integer
add_column 'test_models', 'approved', :boolean, :default => true
- label = "test_change_column Columns"
- old_columns = connection.columns(TestModel.table_name, label)
+ old_columns = connection.columns(TestModel.table_name)
assert old_columns.find { |c| c.name == 'age' && c.type == :integer }
change_column "test_models", "age", :string
- new_columns = connection.columns(TestModel.table_name, label)
+ new_columns = connection.columns(TestModel.table_name)
refute new_columns.find { |c| c.name == 'age' and c.type == :integer }
assert new_columns.find { |c| c.name == 'age' and c.type == :string }
- old_columns = connection.columns(TestModel.table_name, label)
+ old_columns = connection.columns(TestModel.table_name)
assert old_columns.find { |c|
c.name == 'approved' && c.type == :boolean && c.default == true
}
change_column :test_models, :approved, :boolean, :default => false
- new_columns = connection.columns(TestModel.table_name, label)
+ new_columns = connection.columns(TestModel.table_name)
refute new_columns.find { |c| c.name == 'approved' and c.type == :boolean and c.default == true }
assert new_columns.find { |c| c.name == 'approved' and c.type == :boolean and c.default == false }