aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/cat.rb
blob: dfdde186419ead274becce4fff0bc35a11a837c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class Cat < ActiveRecord::Base
  self.abstract_class = true

  enum gender: [:female, :male]

  default_scope -> { where(is_vegetarian: false) }
end

class Lion < Cat
end