You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/models/graduation_work_comment_ass...

9 lines
237 B

class GraduationWorkCommentAssignation < ApplicationRecord
belongs_to :graduation_work
belongs_to :graduation_task
belongs_to :user
belongs_to :graduation_group
scope :myself, ->(user_id) {where(user_id: user_id)}
end