# File lib/big_record/model.rb, line 892 def column(name, type, options={}) name = name.to_s name = "#{self.default_column_prefix}#{name}" unless (name =~ /:/) || self.default_column_prefix.blank? @columns_hash = default_columns unless @columns_hash # The other variables that are cached and depend on @columns_hash need to be reloaded invalidate_columns c = create_column(name, type, options) @columns_hash[c.name] = c alias_attribute c.alias, c.name if c.alias c end