This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
reset issues_count
tags/v1.0.0
sylor_huang@126.com
6 years ago
parent
463c1fe7a4
commit
de1e748e25
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
db/migrate/20200716055018_reset_project_issues_counte.rb
+ 9
- 0
db/migrate/20200716055018_reset_project_issues_counte.rb
View File
@@ -0,0 +1,9 @@
class ResetProjectIssuesCounte < ActiveRecord::Migration[5.2]
def change
projects = Project.select(:id, :issues_count).all
projects.each do |p|
puts p.id
Project.reset_counters( p.id, :issues_count, touch: false )
end
end
end
Write
Preview
Loading…
Cancel
Save