aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/doubloon.rb
blob: 2b11d128e26b05a6f1688a606a3090823c985186 (plain) (tree)
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