summaryrefslogtreecommitdiff
path: root/app/models/character.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/character.rb')
-rw-r--r--app/models/character.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/character.rb b/app/models/character.rb
index 41dc951..73d2c4b 100644
--- a/app/models/character.rb
+++ b/app/models/character.rb
@@ -1,6 +1,9 @@
class Character < ApplicationRecord
belongs_to :user
belongs_to :activity, optional: true
+ has_many :title_awards
+ has_many :titles, through: :title_awards
+ belongs_to :active_title, class_name: "Title", optional: true
has_one :hearth
has_many :character_items
has_many :learned_activities