Sha256: 1e567a3c02fa6c1cc2897e795d19f1eec29d3a445ca7e8e3170fc6d9c0b270a5

Contents?: true

Size: 188 Bytes

Versions: 14

Compression:

Stored size: 188 Bytes

Contents

# frozen_string_literal: true

class PokemonMaster < ActiveRecord::Base
  has_one :favorite_pokemon, -> { where(favorite: true) },
          class_name: 'Pokemon'
  has_many :pokemons
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
azeroth-1.0.0 spec/dummy/app/models/pokemon_master.rb
azeroth-0.10.1 spec/dummy/app/models/pokemon_master.rb
azeroth-0.10.0 spec/dummy/app/models/pokemon_master.rb
azeroth-0.9.0 spec/dummy/app/models/pokemon_master.rb
azeroth-0.8.2 spec/dummy/app/models/pokemon_master.rb
azeroth-0.8.1 spec/dummy/app/models/pokemon_master.rb
azeroth-0.8.0 spec/dummy/app/models/pokemon_master.rb
azeroth-0.7.4 spec/dummy/app/models/pokemon_master.rb
azeroth-0.7.3 spec/dummy/app/models/pokemon_master.rb
azeroth-0.7.2 spec/dummy/app/models/pokemon_master.rb
azeroth-0.7.1 spec/dummy/app/models/pokemon_master.rb
azeroth-0.7.0 spec/dummy/app/models/pokemon_master.rb
azeroth-0.6.5 spec/dummy/app/models/pokemon_master.rb
azeroth-0.6.4 spec/dummy/app/models/pokemon_master.rb