项目的列表页修改数量参数

This commit is contained in:
sylor_huang@126.com
2020-05-13 17:07:41 +08:00
parent e3d0904e2c
commit 8aed492dae
6 changed files with 41 additions and 3 deletions
+2 -1
View File
@@ -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