Sha256: 39c9fe2473770938856a97cdca8dfd989d4b9d301a363659aab168796b6440f7

Contents?: true

Size: 214 Bytes

Versions: 4

Compression:

Stored size: 214 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/cat.rb
ibm_db-5.4.1-x86-mingw32 test/models/cat.rb
ibm_db-5.4.0-x86-mingw32 test/models/cat.rb
ibm_db-5.3.2-x86-mingw32 test/models/cat.rb