|
|
@ -58,7 +58,7 @@ class User < ApplicationRecord
|
|
|
|
has_many :tidings, :dependent => :destroy
|
|
|
|
has_many :tidings, :dependent => :destroy
|
|
|
|
|
|
|
|
|
|
|
|
has_many :games, :dependent => :destroy
|
|
|
|
has_many :games, :dependent => :destroy
|
|
|
|
has_many :created_subjects
|
|
|
|
has_many :created_subjects, foreign_key: :user_id, class_name: 'Subject'
|
|
|
|
has_many :subjects, :through => :subject_members
|
|
|
|
has_many :subjects, :through => :subject_members
|
|
|
|
has_many :subject_members, :dependent => :destroy
|
|
|
|
has_many :subject_members, :dependent => :destroy
|
|
|
|
has_many :grades, :dependent => :destroy
|
|
|
|
has_many :grades, :dependent => :destroy
|
|
|
|