FIX project and project_info aasion

This commit is contained in:
jasder 2021-03-23 09:34:20 +08:00
parent 9a8b89bcd8
commit 5a2e17abe2
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ class Project < ApplicationRecord
has_one :project_educoder, dependent: :destroy has_one :project_educoder, dependent: :destroy
has_one :project_score, dependent: :destroy has_one :project_score, dependent: :destroy
has_many :project_infos, :dependent => :destroy
has_one :repository, dependent: :destroy has_one :repository, dependent: :destroy
has_many :pull_requests, dependent: :destroy has_many :pull_requests, dependent: :destroy
has_many :issue_tags, -> { order("issue_tags.created_at DESC") }, dependent: :destroy has_many :issue_tags, -> { order("issue_tags.created_at DESC") }, dependent: :destroy