Permalink
Browse files

Default integer need not specify a limit [#20371 state:resolved] (mat…

…thuhiggins)
  • Loading branch information...
1 parent 9a80e97 commit 0780563ae7b2df74613550f1438d13459cb10b1f David Heinemeier Hansson committed Apr 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -196,7 +196,7 @@ def native_database_types #:nodoc:
:primary_key => "int(11) DEFAULT NULL auto_increment PRIMARY KEY",
:string => { :name => "varchar", :limit => 255 },
:text => { :name => "text" },
- :integer => { :name => "int", :limit => 11 },
+ :integer => { :name => "int"},
:float => { :name => "float" },
:decimal => { :name => "decimal" },
:datetime => { :name => "datetime" },

0 comments on commit 0780563

Please sign in to comment.