Sha256: e2087152cc0e5d22ecbc8c01bd92f314dedcad0ae212b818904a25ac18b78aa7

Contents?: true

Size: 338 Bytes

Versions: 20

Compression:

Stored size: 338 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

20 entries across 20 versions & 3 rubygems

Version Path
ibm_db-5.2.0 test/models/vegetables.rb
ibm_db-5.1.0 test/models/vegetables.rb
ibm_db-5.0.5 test/models/vegetables.rb
ibm_db-5.0.4 test/models/vegetables.rb
ibm_db-5.0.3 test/models/vegetables.rb
ibm_db-5.0.2 test/models/vegetables.rb
ibm_db-4.0.0-x86-mingw32 test/models/vegetables.rb
ibm_db-4.0.0 test/models/vegetables.rb
ibm_db-3.0.4-x86-mingw32 test/models/vegetables.rb
ibm_db-3.0.4 test/models/vegetables.rb
ibm_db-3.0.3-x86-mingw32 test/models/vegetables.rb
ibm_db-3.0.3 test/models/vegetables.rb
ibm_db-3.0.2-x86-mingw32 test/models/vegetables.rb
ibm_db-3.0.2 test/models/vegetables.rb
activejob-lock-0.0.2 rails/activerecord/test/models/vegetables.rb
ibm_db-3.0.1 test/models/vegetables.rb
ibm_db-3.0.1-x86-mingw32 test/models/vegetables.rb
activejob-lock-0.0.1 rails/activerecord/test/models/vegetables.rb
activerecord-nuodb-adapter-1.1 test/models/vegetables.rb
activerecord-nuodb-adapter-1.0.4 test/models/vegetables.rb