gitlab-org--gitlab-foss/db/migrate/20180304204842_clean_commits_count_migration.rb
Jan Provaznik 0b7d108514 Cleanup after adding MR diff's commit_count
* processes any pending records which are not migrated yet
* bumps import_export version because of new commits_count attribute
* removes commits_count fallback method
2018-03-05 15:37:01 +01:00

14 lines
263 B
Ruby

class CleanCommitsCountMigration < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
Gitlab::BackgroundMigration.steal('AddMergeRequestDiffCommitsCount')
end
def down
end
end