class ActiveRecord::ConnectionAdapters::MySQL::TableDefinition

Active Record MySQL Adapter Table Definition

Attributes

charset[R]
collation[R]

Public Class Methods

new(conn, name, charset: nil, collation: nil, **) click to toggle source
# File lib/active_record/connection_adapters/mysql/schema_definitions.rb, line 60
def initialize(conn, name, charset: nil, collation: nil, **)
  super
  @charset = charset
  @collation = collation
end

Private Instance Methods

aliased_types(name, fallback) click to toggle source
# File lib/active_record/connection_adapters/mysql/schema_definitions.rb, line 87
def aliased_types(name, fallback)
  fallback
end
integer_like_primary_key_type(type, options) click to toggle source
# File lib/active_record/connection_adapters/mysql/schema_definitions.rb, line 91
def integer_like_primary_key_type(type, options)
  unless options[:auto_increment] == false
    options[:auto_increment] = true
  end

  type
end
valid_column_definition_options() click to toggle source
# File lib/active_record/connection_adapters/mysql/schema_definitions.rb, line 83
def valid_column_definition_options
  super + [:auto_increment, :charset, :as, :size, :unsigned, :first, :after, :type, :stored]
end