ADD some columns for pull

This commit is contained in:
Jasder 2020-11-04 14:07:53 +08:00
parent 58d8c911a8
commit 5d84df064a
1 changed files with 7 additions and 0 deletions

View File

@ -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