Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle unsigned columns in the schema dumper

  • Loading branch information...
commit ee087d67654ce4b295a6cf645bbf1d8b76efd8c3 1 parent 95b128e
Jeremy Evans authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sequel/extensions/schema_dumper.rb
2  lib/sequel/extensions/schema_dumper.rb
View
@@ -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
{:type=>Integer}
when /\Atinyint(?:\((\d+)\))?\z/o
{:type =>schema[:type] == :boolean ? TrueClass : Integer}
Please sign in to comment.
Something went wrong with that request. Please try again.