Sha256: 26cef466ab31cf775a18e6dac5e7c6a6820322ce084a83747da20fc22ca44093

Contents?: true

Size: 255 Bytes

Versions: 37

Compression:

Stored size: 255 Bytes

Contents

class Pirate < ActiveRecord::Base
  belongs_to :parrot
  has_and_belongs_to_many :parrots
  has_many :treasures, :as => :looter

  has_many :treasure_estimates, :through => :treasures, :source => :price_estimates

  validates_presence_of :catchphrase
end

Version data entries

37 entries across 36 versions & 12 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activerecord/test/models/pirate.rb
ferblape-query_memcached-2.2.2 test/testing_app/app/models/pirate.rb
masover-castronaut-0.4.4.4 vendor/activerecord/test/models/pirate.rb
masover-castronaut-0.4.4.5 vendor/activerecord/test/models/pirate.rb
masover-castronaut-0.5.0.1 vendor/activerecord/test/models/pirate.rb
p8-castronaut-0.6.1.1 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.4.1 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.4.2 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.4.3 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.4.4 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.4.5 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.4.6 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.5.0 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.5.1 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.5.2 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.5.3 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.5.4 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/models/pirate.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/models/pirate.rb