Skip to content

Commit

Permalink
Merge pull request #27286 from alexcameron89/document_recent_regex_ch…
Browse files Browse the repository at this point in the history
…ange

[ci skip] Document regex change
  • Loading branch information
sgrif committed Dec 6, 2016
2 parents a8380f1 + 809d084 commit 91ae6e8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -5,6 +5,7 @@ class Column < ConnectionAdapters::Column # :nodoc:
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

Expand Down

0 comments on commit 91ae6e8

Please sign in to comment.