diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-09-14 16:19:22 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-09-14 16:19:22 +0900 |
commit | e463f6cc00706031f70bdcc410c036e0dee725a7 (patch) | |
tree | aa548ac1555f388e944726a6c1201a906afc59af /activerecord | |
parent | 174a57e1cb4dbd9ef60b136d2c2d380085691956 (diff) | |
download | rails-e463f6cc00706031f70bdcc410c036e0dee725a7.tar.gz rails-e463f6cc00706031f70bdcc410c036e0dee725a7.tar.bz2 rails-e463f6cc00706031f70bdcc410c036e0dee725a7.zip |
Fix doc of limit option for a text column [ci skip]
Follow up #21591.
The document of limit option for a text column is incorrect.
MySQL: the limit is byte length, not character length
Pg, Sqlite3: variable unlimited length
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index 3115e03ea2..2c76dd1518 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -236,8 +236,8 @@ module ActiveRecord # # Available options are (none of these exists by default): # * <tt>:limit</tt> - - # Requests a maximum column length. This is number of characters for <tt>:string</tt> and - # <tt>:text</tt> columns and number of bytes for <tt>:binary</tt> and <tt>:integer</tt> columns. + # Requests a maximum column length. This is number of characters for a <tt>:string</tt> column + # and number of bytes for <tt>:text</tt>, <tt>:binary</tt> and <tt>:integer</tt> columns. # * <tt>:default</tt> - # The column's default value. Use nil for NULL. # * <tt>:null</tt> - |