diff options
author | Lisa Ugray <lisa.ugray@shopify.com> | 2017-07-25 14:51:19 -0400 |
---|---|---|
committer | Lisa Ugray <lisa.ugray@shopify.com> | 2017-07-25 14:51:19 -0400 |
commit | 7f58ef656b6bfa4e72a59dead9b9fa5346e531a1 (patch) | |
tree | 067b94ac7e59c375fa8f6385b07023aa5f41a75b /activerecord | |
parent | ea6139101ccaf8be03b536b1293a9f36bc12f2f7 (diff) | |
download | rails-7f58ef656b6bfa4e72a59dead9b9fa5346e531a1.tar.gz rails-7f58ef656b6bfa4e72a59dead9b9fa5346e531a1.tar.bz2 rails-7f58ef656b6bfa4e72a59dead9b9fa5346e531a1.zip |
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.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 # * <tt>:limit</tt> - # Requests a maximum column length. This is the 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. + # This option is ignored by some backends. # * <tt>:default</tt> - # The column's default value. Use +nil+ for +NULL+. # * <tt>:null</tt> - |