aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/doubloon.rb
blob: 72725046660b1d4f97adff95d0cf10f1a512d5c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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