X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Fpirate.rb;fp=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Fpirate.rb;h=51c8183dee6ee86b70072ef7e715a5fe110ccfb5;hb=d115f2e23823271635bad69229a42cd8ac68debe;hp=0000000000000000000000000000000000000000;hpb=37cb670bf3ddde90b214e591f100ed4446469484;p=depot.git

diff --git a/vendor/rails/activerecord/test/models/pirate.rb b/vendor/rails/activerecord/test/models/pirate.rb
new file mode 100644
index 0000000..51c8183
--- /dev/null
+++ b/vendor/rails/activerecord/test/models/pirate.rb
@@ -0,0 +1,9 @@
+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