summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-03-29 10:58:21 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-03-29 10:58:21 +0000
commit8230b774b5a6375d9b84c71e72c8e41e3bfd7fad (patch)
tree151480556851e0c9b3fd233eb8e9bb0459d7ee6e /lib
parent8b37ce6f7f6d29604c42c65f3986d60dce0abd6c (diff)
parentd756150dcf9d078c9bc27316b0ce7937df427266 (diff)
downloadgitlab-ce-8230b774b5a6375d9b84c71e72c8e41e3bfd7fad.tar.gz
Merge branch 'fix/gb/fix-background-pipeline-stages-migration' into 'master'
Fix background pipeline stages migration Closes #44135 See merge request gitlab-org/gitlab-ce!18076
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/background_migration/migrate_build_stage.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/background_migration/migrate_build_stage.rb b/lib/gitlab/background_migration/migrate_build_stage.rb
index 8fe4f1a2289..242e3143e71 100644
--- a/lib/gitlab/background_migration/migrate_build_stage.rb
+++ b/lib/gitlab/background_migration/migrate_build_stage.rb
@@ -12,6 +12,7 @@ module Gitlab
class Build < ActiveRecord::Base
self.table_name = 'ci_builds'
+ self.inheritance_column = :_type_disabled
def ensure_stage!(attempts: 2)
find_stage || create_stage!