waka / activerecord-mysql-unsigned

Enable to use the "unsigned" option in the integer type for migrating of ActiveRecord
MIT License
31 stars 12 forks source link

Call original type_to_sql when signed #15

Closed winebarrel closed 9 years ago

winebarrel commented 9 years ago

When type_to_sql is called without unsigned, processing of bigint is not performed correctly.

Following is expected to be any_num bigint,:

create_table("any_table") do |t|
  t.integer("any_num", {:limit=>5})
# => CREATE TABLE `any_table` (... `any_num` int(5),

Please merge if there is no problem :bow:

waka commented 9 years ago

Thanks! I merged this pr. And I will release soon as a new version after #16 .