Sha256: 72b46249f1282f35ad7eb528d98219f6cdc35be8c62d7fb37b0ed7d6352c9d4e

Contents?: true

Size: 524 Bytes

Versions: 109

Compression:

Stored size: 524 Bytes

Contents

class Contact < ActiveRecord::Base
  # mock out self.columns so no pesky db is needed for these tests
  def self.column(name, sql_type = nil, options = {})
    @columns ||= []
    @columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, options[:default], sql_type.to_s, options[:null])
  end

  column :name,        :string
  column :age,         :integer
  column :avatar,      :binary
  column :created_at,  :datetime
  column :awesome,     :boolean
  column :preferences, :string

  serialize :preferences
end

Version data entries

109 entries across 106 versions & 22 rubygems

Version Path
activerecord-2.3.9 test/models/contact.rb
activerecord-2.3.9.pre test/models/contact.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/activerecord/test/models/contact.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/activerecord/test/models/contact.rb
webroar-0.4.0 src/admin_panel/vendor/rails/activerecord/test/models/contact.rb
nbudin-castronaut-0.7.5 vendor/activerecord/test/models/contact.rb
radiant-0.9.1 vendor/rails/activerecord/test/models/contact.rb
activerecord-2.3.8 test/models/contact.rb
activerecord-2.3.8.pre1 test/models/contact.rb
activerecord-2.3.7 test/models/contact.rb
activerecord-2.3.6 test/models/contact.rb
radiant-0.8.2 vendor/rails/activerecord/test/models/contact.rb
radiant-0.9.0.rc2 vendor/rails/activerecord/test/models/contact.rb
webroar-0.3.1 src/admin_panel/vendor/rails/activerecord/test/models/contact.rb
webroar-0.3.0 src/admin_panel/vendor/rails/activerecord/test/models/contact.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/test/models/contact.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.3.3/test/models/contact.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/test/models/contact.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.2.2/test/models/contact.rb
simply_stated-0.0.5 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/contact.rb