Froze rails gems
[depot.git] / vendor / rails / activerecord / test / models / contact.rb
1 class Contact < ActiveRecord::Base
2 # mock out self.columns so no pesky db is needed for these tests
3 def self.column(name, sql_type = nil, options = {})
4 @columns ||= []
5 @columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, options[:default], sql_type.to_s, options[:null])
6 end
7
8 column :name, :string
9 column :age, :integer
10 column :avatar, :binary
11 column :created_at, :datetime
12 column :awesome, :boolean
13 column :preferences, :string
14
15 serialize :preferences
16 end