class ActiveRecord::ConnectionAdapters::PostgreSQLColumn

def extract_limit(sql_type)

def extract_limit(sql_type)
  case sql_type
  when /^bigint/i;    8
  when /^smallint/i;  2
  else super
  end
end