diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-29 13:12:22 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-29 13:12:22 +0300 |
commit | 9afabee3e0ff698c1e15dc06b25f8e9c5f548727 (patch) | |
tree | 306247eb2b64330a6207af177f76f8eec22ec8a3 /lib/gitlab | |
parent | 3577009ad84fbd6b90b4702f06290980ebd4771a (diff) |
Do not use STI mechanisms when migrating pipeline stages
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/background_migration/migrate_build_stage.rb | 1 |
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! |