# File lib/big_record/connection_adapters/column.rb, line 48 def initialize(name, type, options={}) @type = type.to_sym @collection = options[:collection] @name = name.to_s @alias = options[:alias] ? options[:alias].to_s : (self.class.extract_qualifier(@name) || (@name unless family?)) if options[:default] @default = options[:default] elsif @collection @default = [] else @default = (@type == :boolean) ? false : nil end # cache whether or not we'll need to dup the default columns to avoid clients to share # the same reference to the default value @must_dup_default = (!@default.nil? and (collection or (!number? and @type != :boolean))) @primary = nil end