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
= {})
5 @columns << ActiveRecord
::ConnectionAdapters::Column.new(name
.to_s
, options
[:default], sql_type
.to_s
, options
[:null])
10 column
:avatar, :binary
11 column
:created_at, :datetime
12 column
:awesome, :boolean
13 column
:preferences, :string
15 serialize
:preferences