evemonk / evemonk

Inverse relation cannot be determined automatically RB-RL1031
Bug risk
Major
6 months agoa year old
Specify an :inverse_of option.
12    foreign_key: "journal_ref_id",
13    optional: true
14
15  belongs_to :client,16    class_name: "Eve::Character",
17    primary_key: "character_id",
18    foreign_key: "client_id",
Specify an :inverse_of option.
 7
 8  belongs_to :type, class_name: "Eve::Type", optional: true
 9
10  belongs_to :wallet_journal,11    primary_key: "wallet_journal_id",
12    foreign_key: "journal_ref_id",
13    optional: true
Specify an :inverse_of option.
 6
 7    belongs_to :type, optional: true
 8
 9    belongs_to :dogma_attribute,10      primary_key: "attribute_id",
11      foreign_key: "attribute_id",
12      optional: true
Specify an :inverse_of option.
 2
 3module Eve
 4  class RequiredItem < ApplicationRecord
 5    belongs_to :loyalty_store_offer, 6      foreign_key: "eve_loyalty_store_offer_id"
 7
 8    belongs_to :type,
Specify an :inverse_of option.
14
15    has_many :types # rubocop:disable Rails/HasManyOrHasOneDependent
16
17    has_many :subgroups, # rubocop:disable Rails/HasManyOrHasOneDependent18      class_name: "Eve::MarketGroup",
19      foreign_key: "parent_group_id"
20