edge badge
Methods
A
N
V
Class Public methods
new(conn)
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 111
def initialize(conn)
  @conn  = conn
  @cache = {}
end
Instance Public methods
accept(o)
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 116
def accept(o)
  m = @cache[o.class] ||= "visit_#{o.class.name.split('::').last}"
  send m, o
end
visit_AddColumn(o)
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 121
def visit_AddColumn(o)
  sql_type = type_to_sql(o.type.to_sym, o.limit, o.precision, o.scale)
  sql = "ADD #{quote_column_name(o.name)} #{sql_type}"
  add_column_options!(sql, column_options(o))
end