aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/pirate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/pirate.rb')
-rw-r--r--activerecord/test/models/pirate.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/pirate.rb b/activerecord/test/models/pirate.rb
new file mode 100644
index 0000000000..f7193dfbe0
--- /dev/null
+++ b/activerecord/test/models/pirate.rb
@@ -0,0 +1,5 @@
+class Pirate < ActiveRecord::Base
+ belongs_to :parrot
+ has_and_belongs_to_many :parrots
+ has_many :loots, :as => :looter
+end