diff options
author | Alex Kitchens <alexcameron98@gmail.com> | 2016-12-06 11:58:50 -0600 |
---|---|---|
committer | Alex Kitchens <alexcameron98@gmail.com> | 2016-12-06 11:58:50 -0600 |
commit | 809d08496a73d8e9618ccfddaf753ffec06532e1 (patch) | |
tree | 573a79fdd31b8919289db9afface34569e9d52d7 /activerecord | |
parent | a8380f12dbd15f725343850b87b3b44df6f2615d (diff) | |
download | rails-809d08496a73d8e9618ccfddaf753ffec06532e1.tar.gz rails-809d08496a73d8e9618ccfddaf753ffec06532e1.tar.bz2 rails-809d08496a73d8e9618ccfddaf753ffec06532e1.zip |
[ci skip] Document regex change
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql/column.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql/column.rb b/activerecord/lib/active_record/connection_adapters/mysql/column.rb index 22b9df5309..c66d543752 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql/column.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql/column.rb @@ -5,6 +5,7 @@ module ActiveRecord delegate :extra, to: :sql_type_metadata, allow_nil: true def unsigned? + # enum and set types do not allow being defined as unsigned. !/\A(?:enum|set)\b/.match?(sql_type) && /\bunsigned\b/.match?(sql_type) end |