Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Handle unsigned columns in the schema dumper

  • Loading branch information...
commit ee087d67654ce4b295a6cf645bbf1d8b76efd8c3 1 parent 95b128e
Jeremy Evans authored June 02, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  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)
118 118
     # database type is not recognized, return it as a String type.
119 119
     def column_schema_to_ruby_type(schema)
120 120
       case t = schema[:db_type].downcase
121  
-      when /\A(?:medium|small)?int(?:eger)?(?:\((?:\d+)\))?\z/o
  121
+      when /\A(?:medium|small)?int(?:eger)?(?:\((?:\d+)\))?(?: unsigned)?\z/o
122 122
         {:type=>Integer}
123 123
       when /\Atinyint(?:\((\d+)\))?\z/o
124 124
         {:type =>schema[:type] == :boolean ? TrueClass : Integer}

0 notes on commit ee087d6

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