aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorZuhao Wan <wanzuhao@gmail.com>2014-07-22 11:22:05 +0800
committerZuhao Wan <wanzuhao@gmail.com>2014-07-22 14:43:59 +0800
commit8e30a636256fcc5d4e9c48825339e894c9e7b8a4 (patch)
tree80f820a8e0be5b887f663fb85a6dcf24a023273e /activerecord
parentcee2c85b07317524861ba14b51d8e7e9b34966ba (diff)
downloadrails-8e30a636256fcc5d4e9c48825339e894c9e7b8a4.tar.gz
rails-8e30a636256fcc5d4e9c48825339e894c9e7b8a4.tar.bz2
rails-8e30a636256fcc5d4e9c48825339e894c9e7b8a4.zip
Remove length limit that results failure in other tests.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 84720585f2..2a00b2a3a6 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -63,7 +63,7 @@ class MigrationTest < ActiveRecord::TestCase
end
Person.connection.remove_column("people", "first_name") rescue nil
Person.connection.remove_column("people", "middle_name") rescue nil
- Person.connection.add_column("people", "first_name", :string, :limit => 40)
+ Person.connection.add_column("people", "first_name", :string, null: false)
Person.reset_column_information
end