* Add guidebooks migration * Implement business logic for reading Guidebooks * Change to individual guidebook columns * Properly output guidebook description * Move to 1-index guidebooks * Update party-related files for 1-index guidebooks * Add tables for Siero * Add raid groups table * Update raid model To belong to the RaidGroup class * Update job class To have many job skills * Add endpoint for raid groups * Update Raid blueprint with views * Added down for creating table * Add guidebooks flag and auto summon flag * Guidebooks → RaidGroup * Auto summon → Party * Add views to Raid blueprint * Add views and guidebook flag to RaidGroup blueprint * Add auto summon and Raid view to Party blueprint
19 lines
345 B
Ruby
19 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Job < ApplicationRecord
|
|
belongs_to :party
|
|
has_many :skills, class_name: 'JobSkill'
|
|
|
|
belongs_to :base_job,
|
|
foreign_key: 'base_job_id',
|
|
class_name: 'Job',
|
|
optional: true
|
|
|
|
def blueprint
|
|
JobBlueprint
|
|
end
|
|
|
|
def display_resource(job)
|
|
job.name_en
|
|
end
|
|
end
|