Browse Source

ADD some columns for pull

tags/v1.0.0
Jasder 5 years ago
parent
commit
5d84df064a
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      db/migrate/20201104034658_add_commits_count_and_files_count_to_pull_requests.rb

+ 7
- 0
db/migrate/20201104034658_add_commits_count_and_files_count_to_pull_requests.rb 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

Loading…
Cancel
Save