Flowdock
method

type_with_size_to_sql

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: SchemaStatements
type_with_size_to_sql(type, size) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb, line 259
          def type_with_size_to_sql(type, size)
            case size&.to_s
            when nil, "tiny", "medium", "long"
              "#{size}#{type}"
            else
              raise ArgumentError,
                "#{size.inspect} is invalid :size value. Only :tiny, :medium, and :long are allowed."
            end
          end
Register or log in to add new notes.