diff options
author | Robert Speicher <robert@gitlab.com> | 2018-03-05 17:19:31 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-03-05 17:19:31 +0000 |
commit | 49f72d06654bd7bdea259154e1092a53aab57acc (patch) | |
tree | 96af0835f605721b0393044c887f1ae6e79d3a3a /db | |
parent | 2acb2fb3481d59e20ff4eae438b021bdb5837b4b (diff) | |
parent | 0b7d10851456018328da137beeca931767b4fd0a (diff) | |
download | gitlab-ce-49f72d06654bd7bdea259154e1092a53aab57acc.tar.gz |
Merge branch 'jprovazn-count-cleanup' into 'master'43739-gl_repository-not-set-when-merging-merge-requests-from-the-web-ui
Cleanup after adding MR diff's commit_count
Closes #41698
See merge request gitlab-org/gitlab-ce!17513
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180304204842_clean_commits_count_migration.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/db/migrate/20180304204842_clean_commits_count_migration.rb b/db/migrate/20180304204842_clean_commits_count_migration.rb new file mode 100644 index 00000000000..ace4c6aa1cf --- /dev/null +++ b/db/migrate/20180304204842_clean_commits_count_migration.rb @@ -0,0 +1,14 @@ +class CleanCommitsCountMigration < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + Gitlab::BackgroundMigration.steal('AddMergeRequestDiffCommitsCount') + end + + def down + end +end diff --git a/db/schema.rb b/db/schema.rb index db8bafe9677..4937fbd3df1 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180301084653) do +ActiveRecord::Schema.define(version: 20180304204842) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |