Skip to content
Browse files

Handle unsigned columns in the schema dumper

  • Loading branch information...
1 parent 95b128e commit ee087d67654ce4b295a6cf645bbf1d8b76efd8c3 @jeremyevans committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sequel/extensions/schema_dumper.rb
2 lib/sequel/extensions/schema_dumper.rb
@@ -118,7 +118,7 @@ def column_schema_to_generator_opts(name, schema, options)
# database type is not recognized, return it as a String type.
def column_schema_to_ruby_type(schema)
case t = schema[:db_type].downcase
- when /\A(?:medium|small)?int(?:eger)?(?:\((?:\d+)\))?\z/o
+ when /\A(?:medium|small)?int(?:eger)?(?:\((?:\d+)\))?(?: unsigned)?\z/o
when /\Atinyint(?:\((\d+)\))?\z/o
{:type =>schema[:type] == :boolean ? TrueClass : Integer}

0 comments on commit ee087d6

Please sign in to comment.
Something went wrong with that request. Please try again.