diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-03-06 17:20:20 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2018-04-25 11:53:37 +0300 |
commit | 5bb421ecbbfdf4658c8e3bfb05dc86a84c7e4725 (patch) | |
tree | 4ce30ce0d5ea50b5ece218f8b5126ceb980345aa /app | |
parent | e6f6f8e7a3af3cd577075d1ac9ce287867c3e429 (diff) |
Cleanup after adding MR diff's commit_count (try 2)
* processes any pending records which are not migrated yet
* bumps import_export version because of new commits_count attribute
* removes commits_count fallback method
Diffstat (limited to 'app')
-rw-r--r-- | app/models/merge_request_diff.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/merge_request_diff.rb b/app/models/merge_request_diff.rb index c1c27ccf3e5..06aa67c600f 100644 --- a/app/models/merge_request_diff.rb +++ b/app/models/merge_request_diff.rb @@ -197,10 +197,6 @@ class MergeRequestDiff < ActiveRecord::Base CompareService.new(project, head_commit_sha).execute(project, sha, straight: true) end - def commits_count - super || merge_request_diff_commits.size - end - private def create_merge_request_diff_files(diffs) |