mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修改已发行版本的数量问题
This commit is contained in:
@@ -2,6 +2,6 @@ class VersionRelease < ApplicationRecord
|
||||
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)}
|
||||
scope :releases_size, ->{where(draft: false, prerelease: false).size}
|
||||
# has_many :attachments, as: :container, dependent: :destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user