Sha256: ffd800a2c53a7e82f3fd9c37790225c078752c280adaa4999ca9d6875340e670

Contents?: true

Size: 202 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/models/cat.rb
ibm_db-5.4.1 test/models/cat.rb
ibm_db-5.4.0 test/models/cat.rb
ibm_db-5.3.2 test/models/cat.rb
ibm_db-5.3.1 test/models/cat.rb
ruby-on-quails-0.1.0 activerecord/test/models/cat.rb