diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-09-13 16:45:52 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-09-16 13:50:00 +0900 |
commit | f7a35cc5cfb1f970cdea58fb9b47e06c57f532f9 (patch) | |
tree | 67fed67e78d69821f77d91fd1c2c27d3edc248a3 /activerecord/README.rdoc | |
parent | 93181210234411b9a918cca481422eabebe5400e (diff) | |
download | rails-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/README.rdoc')
-rw-r--r-- | activerecord/README.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/README.rdoc b/activerecord/README.rdoc index 049c5d2b3b..3eac8cc422 100644 --- a/activerecord/README.rdoc +++ b/activerecord/README.rdoc @@ -26,7 +26,7 @@ The Product class is automatically mapped to the table named "products", which might look like this: CREATE TABLE products ( - id int(11) NOT NULL auto_increment, + id int NOT NULL auto_increment, name varchar(255), PRIMARY KEY (id) ); |