summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorReuben Pereira <rpereira@gitlab.com>2019-09-12 12:56:47 +0000
committerAndreas Brandl <abrandl@gitlab.com>2019-09-12 12:56:47 +0000
commit4a0d7a6cf0820dd9bf301a71b8746d3cac2adef6 (patch)
tree1efc8d6422175dc9d1c5201380afaed22b447970 /db
parentd02ee542b4a6ae769545d1637fc06a38ad8b298f (diff)
downloadgitlab-ce-4a0d7a6cf0820dd9bf301a71b8746d3cac2adef6.tar.gz
Create self-monitoring project in background migration
- A regular migration caused problems such as https://gitlab.com/charts/gitlab/issues/1565.
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20190801072937_add_gitlab_instance_administration_project.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/post_migrate/20190801072937_add_gitlab_instance_administration_project.rb b/db/post_migrate/20190801072937_add_gitlab_instance_administration_project.rb
index 8b2cf7b3d76..580653f1da5 100644
--- a/db/post_migrate/20190801072937_add_gitlab_instance_administration_project.rb
+++ b/db/post_migrate/20190801072937_add_gitlab_instance_administration_project.rb
@@ -3,8 +3,10 @@
class AddGitlabInstanceAdministrationProject < ActiveRecord::Migration[5.2]
DOWNTIME = false
+ disable_ddl_transaction!
+
def up
- Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService.new.execute!
+ BackgroundMigrationWorker.perform_async('AddGitlabInstanceAdministrationProject', [])
end
def down