aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/cat.rb
blob: 43013964b653d53922c82b47188fc6e3c64fd553 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class Cat < ActiveRecord::Base
  self.abstract_class = true

  enum gender: [:female, :male]

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

class Lion < Cat
end