From e463f6cc00706031f70bdcc410c036e0dee725a7 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 14 Sep 2015 16:19:22 +0900 Subject: 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 --- .../active_record/connection_adapters/abstract/schema_definitions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib') 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): # * :limit - - # Requests a maximum column length. This is number of characters for :string and - # :text columns and number of bytes for :binary and :integer columns. + # Requests a maximum column length. This is number of characters for a :string column + # and number of bytes for :text, :binary and :integer columns. # * :default - # The column's default value. Use nil for NULL. # * :null - -- cgit v1.2.3