class ActiveRecord::ConnectionAdapters::TableDefinition

def new_column_definition(name, type, options) # :nodoc:

:nodoc:
def new_column_definition(name, type, options) # :nodoc:
  column = create_column_definition name, type
  limit = options.fetch(:limit) do
    native[type][:limit] if native[type].is_a?(Hash)
  end
  column.limit       = limit
  column.array       = options[:array] if column.respond_to?(:array)
  column.precision   = options[:precision]
  column.scale       = options[:scale]
  column.default     = options[:default]
  column.null        = options[:null]
  column.first       = options[:first]
  column.after       = options[:after]
  column.primary_key = type == :primary_key || options[:primary_key]
  column
end