From 7f58ef656b6bfa4e72a59dead9b9fa5346e531a1 Mon Sep 17 00:00:00 2001 From: Lisa Ugray Date: Tue, 25 Jul 2017 14:51:19 -0400 Subject: Clarify add_column limit documentation The limit option is ignored by PostgreSQL and may be ignored by 3rd party backends. Make this clear in the docs. Fixes #29922. --- .../lib/active_record/connection_adapters/abstract/schema_statements.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 989ebc81a9..e21f93856e 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -511,6 +511,7 @@ module ActiveRecord # * :limit - # Requests a maximum column length. This is the number of characters for a :string column # and number of bytes for :text, :binary and :integer columns. + # This option is ignored by some backends. # * :default - # The column's default value. Use +nil+ for +NULL+. # * :null - -- cgit v1.2.3