mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
change
This commit is contained in:
@@ -3,7 +3,7 @@ class ChangeProjectsDefaultCount < ActiveRecord::Migration[5.2]
|
||||
projects = Project.select(:id, :issues_count,:pull_requests_count,:versions_count,:praises_count,:watchers_count).all
|
||||
projects.each do |p|
|
||||
puts p.id
|
||||
Project.reset_counters( p.id, :issues_count, touch: false )
|
||||
# Project.reset_counters( p.id, :issues_count, touch: false )
|
||||
Project.reset_counters( p.id, :pull_requests_count, touch: false )
|
||||
Project.reset_counters( p.id, :versions_count, touch: false )
|
||||
# Project.reset_counters( p.id, :praises_count, touch: false )
|
||||
|
||||
Reference in New Issue
Block a user