Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/models/decklist.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
class Decklist < ApplicationRecord
has_one :identity_card, :class_name => 'Card', :foreign_key => 'id', :primary_key => 'identity_card_id'
belongs_to :side

has_many :decklist_cards, dependent: :destroy
has_many :cards, :through => :decklist_cards
end