diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-12-06 15:22:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 15:22:14 -0500 |
commit | 91ae6e86da8174f5c4073bfce7fa6239464a4f02 (patch) | |
tree | 573a79fdd31b8919289db9afface34569e9d52d7 /activerecord/lib/active_record/connection_adapters/mysql/column.rb | |
parent | a8380f12dbd15f725343850b87b3b44df6f2615d (diff) | |
parent | 809d08496a73d8e9618ccfddaf753ffec06532e1 (diff) | |
download | rails-91ae6e86da8174f5c4073bfce7fa6239464a4f02.tar.gz rails-91ae6e86da8174f5c4073bfce7fa6239464a4f02.tar.bz2 rails-91ae6e86da8174f5c4073bfce7fa6239464a4f02.zip |
Merge pull request #27286 from alexcameron89/document_recent_regex_change
[ci skip] Document regex change
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/mysql/column.rb')
-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 |