aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/column.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-09-13 16:45:52 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-09-16 13:50:00 +0900
commitf7a35cc5cfb1f970cdea58fb9b47e06c57f532f9 (patch)
tree67fed67e78d69821f77d91fd1c2c27d3edc248a3 /activerecord/lib/active_record/connection_adapters/column.rb
parent93181210234411b9a918cca481422eabebe5400e (diff)
downloadrails-f7a35cc5cfb1f970cdea58fb9b47e06c57f532f9.tar.gz
rails-f7a35cc5cfb1f970cdea58fb9b47e06c57f532f9.tar.bz2
rails-f7a35cc5cfb1f970cdea58fb9b47e06c57f532f9.zip
Remove unnecessary display width
The **(11)** does not affect the storage size of the data type, which for an INT will always be 4 bytes. It affects the **display width**. http://www.tocker.ca/2015/07/02/proposal-to-deprecate-mysql-integer-display-width-and-zerofill.html
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/column.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb
index 4b95b0681d..8222811e0c 100644
--- a/activerecord/lib/active_record/connection_adapters/column.rb
+++ b/activerecord/lib/active_record/connection_adapters/column.rb
@@ -18,7 +18,7 @@ module ActiveRecord
# Instantiates a new column in the table.
#
- # +name+ is the column's name, such as <tt>supplier_id</tt> in <tt>supplier_id int(11)</tt>.
+ # +name+ is the column's name, such as <tt>supplier_id</tt> in <tt>supplier_id int</tt>.
# +default+ is the type-casted default value, such as +new+ in <tt>sales_stage varchar(20) default 'new'</tt>.
# +sql_type_metadata+ is various information about the type of the column
# +null+ determines if this column allows +NULL+ values.