app/models/hunter_backstory.rb
# frozen_string_literal: true
# == Schema Information
#
# Table name: hunter_backstories
#
# @!attribute id
# @return []
# @!attribute choices
# @return [Hash]
# @!attribute created_at
# @return [Time]
# @!attribute updated_at
# @return [Time]
# @!attribute hunter_id
# @return []
# @!attribute playbook_id
# @return []
#
# Indexes
#
# index_hunter_backstories_on_hunter_id (hunter_id)
# index_hunter_backstories_on_playbook_id (playbook_id)
#
class HunterBackstory < ApplicationRecord
belongs_to :hunter
belongs_to :playbook
delegate :backstory, to: :playbook
validates :choices, presence: true
# This is the Pundit Policy that governs HunterBackstory access
#
# @see HunterBackstoryPolicy
def self.policy_class
HuntersImprovementPolicy
end
end