mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
ADD some columns for pull
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class AddCommitsCountAndFilesCountToPullRequests < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :pull_requests, :comments_count, :integer, default: 0, comment: 'number of comments for pull request'
|
||||
add_column :pull_requests, :commits_count, :integer, default: 0, comment: 'number of git commits for pull request'
|
||||
add_column :pull_requests, :files_count, :integer, default: 0, comment: 'number of git change files for pull request'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user