Sha256: e8513047c4abcc1820e6882a157827d50a0552fac66f244c99e94c137cfaaad5

Contents?: true

Size: 362 Bytes

Versions: 8

Compression:

Stored size: 362 Bytes

Contents

class Vegetable < ActiveRecord::Base

  validates_presence_of :name

  def self.inheritance_column
    'custom_type'
  end
end

class Cucumber < Vegetable
end

class Cabbage < Vegetable
end

class GreenCabbage < Cabbage
end

class KingCole < GreenCabbage
end

class RedCabbage < Cabbage
  belongs_to :seller, :class_name => 'Company'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/models/vegetables.rb
ibm_db-5.1.0-x86-mingw32 test/models/vegetables.rb
ibm_db-5.0.5-x86-mingw32 test/models/vegetables.rb
ibm_db-5.0.4-x86-mingw32 test/models/vegetables.rb
ibm_db-5.0.3-x86-mingw32 test/models/vegetables.rb
ibm_db-5.0.2-x86-mingw32 test/models/vegetables.rb
ibm_db-3.0.5-x86-mingw32 test/models/vegetables.rb
ibm_db-3.0.5 test/models/vegetables.rb