aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-12-06 15:22:14 -0500
committerGitHub <noreply@github.com>2016-12-06 15:22:14 -0500
commit91ae6e86da8174f5c4073bfce7fa6239464a4f02 (patch)
tree573a79fdd31b8919289db9afface34569e9d52d7 /activerecord/lib/active_record
parenta8380f12dbd15f725343850b87b3b44df6f2615d (diff)
parent809d08496a73d8e9618ccfddaf753ffec06532e1 (diff)
downloadrails-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')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql/column.rb1
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