- Removes explicitly defined associations and adds ActiveRecord associations instead
10 lines
224 B
Ruby
10 lines
224 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Awakening < ApplicationRecord
|
|
has_many :weapon_awakenings, foreign_key: :awakening_id
|
|
has_many :weapons, through: :weapon_awakenings
|
|
|
|
def awakening
|
|
AwakeningBlueprint
|
|
end
|
|
end
|