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
3mix-castronaut-0.5.0.2 vendor/activerecord/test/models/contact.rb
ferblape-query_memcached-2.2.2 test/testing_app/app/models/contact.rb
masover-castronaut-0.4.4.4 vendor/activerecord/test/models/contact.rb
masover-castronaut-0.4.4.5 vendor/activerecord/test/models/contact.rb
masover-castronaut-0.5.0.1 vendor/activerecord/test/models/contact.rb
p8-castronaut-0.6.1.1 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.4.1 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.4.2 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.4.3 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.4.4 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.4.5 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.4.6 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.5.0 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.5.1 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.5.2 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.5.3 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.5.4 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/models/contact.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/models/contact.rb