修改已发行版本的数量问题
This commit is contained in:
parent
3e6ee91f9a
commit
96e03ac249
|
@ -2,6 +2,6 @@ class VersionRelease < ApplicationRecord
|
||||||
belongs_to :repository, counter_cache: true
|
belongs_to :repository, counter_cache: true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
has_many :project_trends, as: :trend, dependent: :destroy
|
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
|
# has_many :attachments, as: :container, dependent: :destroy
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue