method

integer_to_sql

integer_to_sql(limit)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb, line 282
          def integer_to_sql(limit)
            case limit
            when 1; "tinyint"
            when 2; "smallint"
            when 3; "mediumint"
            when nil, 4; "int"
            when 5..8; "bigint"
            else raise ArgumentError, "No integer type has byte size #{limit}. Use a decimal with scale 0 instead."
            end
          end