aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/doubloon.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/doubloon.rb')
-rw-r--r--activerecord/test/models/doubloon.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/test/models/doubloon.rb b/activerecord/test/models/doubloon.rb
new file mode 100644
index 0000000000..2b11d128e2
--- /dev/null
+++ b/activerecord/test/models/doubloon.rb
@@ -0,0 +1,12 @@
+class AbstractDoubloon < ActiveRecord::Base
+ # This has functionality that might be shared by multiple classes.
+
+ self.abstract_class = true
+ belongs_to :pirate
+end
+
+class Doubloon < AbstractDoubloon
+ # This uses an abstract class that defines attributes and associations.
+
+ self.table_name = 'doubloons'
+end