diff options
Diffstat (limited to 'activerecord/test/models/vegetables.rb')
-rw-r--r-- | activerecord/test/models/vegetables.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/test/models/vegetables.rb b/activerecord/test/models/vegetables.rb index 1f41cde3a5..cfaab08ed1 100644 --- a/activerecord/test/models/vegetables.rb +++ b/activerecord/test/models/vegetables.rb @@ -1,9 +1,10 @@ -class Vegetable < ActiveRecord::Base +# frozen_string_literal: true +class Vegetable < ActiveRecord::Base validates_presence_of :name def self.inheritance_column - 'custom_type' + "custom_type" end end @@ -20,5 +21,5 @@ class KingCole < GreenCabbage end class RedCabbage < Cabbage - belongs_to :seller, :class_name => 'Company' + belongs_to :seller, class_name: "Company" end |