aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/vegetables.rb
blob: 59cedfd9f5f8f766235e1b7d80988cd590ed156c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                    
class Vegetable < ActiveRecord::Base

  validates_presence_of :name

  def self.inheritance_column
    'custom_type'
  end
end

class Cucumber < Vegetable
end

class Cabbage < Vegetable
end