class Journal < ApplicationRecord belongs_to :user belongs_to :issue, foreign_key: :journalized_id end