@@ -5,18 +5,30 @@ class UnifiedPrinting < ApplicationRecord
55
66 belongs_to :side
77 belongs_to :unified_card ,
8- :primary_key => :id ,
9- :foreign_key => :card_id
8+ primary_key : :id ,
9+ foreign_key : :card_id
1010 belongs_to :card
1111 belongs_to :card_set
12- has_one :faction , :through => :card
13- has_one :card_cycle , :through => :card_set
14- has_one :card_type , :through => :card
15- has_one :side , :through => :card
16- has_many :illustrator_printings , primary_key : :id , foreign_key : :printing_id
17- has_many :illustrators , :through => :illustrator_printings
12+ has_one :faction , through : :card
13+ has_one :card_cycle , through : :card_set
14+ has_one :card_type , through : :card
1815
19- has_many :unified_restrictions , primary_key : :card_id , foreign_key : :card_id
20- has_many :card_pool_cards , primary_key : :card_id , foreign_key : :card_id
21- has_many :card_pools , :through => :card_pool_cards
16+ has_many :printing_card_subtypes ,
17+ primary_key : :id ,
18+ foreign_key : :printing_id
19+ has_many :card_subtypes , through : :printing_card_subtypes
20+
21+ has_one :side , through : :card
22+ has_many :illustrator_printings ,
23+ primary_key : :id ,
24+ foreign_key : :printing_id
25+ has_many :illustrators , through : :illustrator_printings
26+
27+ has_many :unified_restrictions ,
28+ primary_key : :card_id ,
29+ foreign_key : :card_id
30+ has_many :card_pool_cards ,
31+ primary_key : :card_id ,
32+ foreign_key : :card_id
33+ has_many :card_pools , through : :card_pool_cards
2234end
0 commit comments