mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-15 06:34:32 +08:00
项目的列表页修改数量参数
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class VersionRelease < ApplicationRecord
|
||||
belongs_to :repository
|
||||
belongs_to :repository, counter_cache: true
|
||||
belongs_to :user
|
||||
has_many :project_trends, as: :trend, dependent: :destroy
|
||||
scope :releases_size, ->{where(draft: false, prerelease: false)}
|
||||
# has_many :attachments, as: :container, dependent: :destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user