diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 13:16:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 13:16:36 +0000 |
commit | 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch) | |
tree | 07e7870bca8aed6d61fdcc810731c50d2c40af47 /db/post_migrate/20200212052620_readd_template_column_to_services.rb | |
parent | 27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff) | |
download | gitlab-ce-311b0269b4eb9839fa63f80c8d7a58f32b8138a0.tar.gz |
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'db/post_migrate/20200212052620_readd_template_column_to_services.rb')
-rw-r--r-- | db/post_migrate/20200212052620_readd_template_column_to_services.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/db/post_migrate/20200212052620_readd_template_column_to_services.rb b/db/post_migrate/20200212052620_readd_template_column_to_services.rb deleted file mode 100644 index c636cb0a07b..00000000000 --- a/db/post_migrate/20200212052620_readd_template_column_to_services.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -class ReaddTemplateColumnToServices < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - # rubocop:disable Migration/UpdateLargeTable - def up - return if column_exists? :services, :template - - # The migration to drop the template column never actually shipped - # to production, so we should be okay to re-add it without worrying - # about doing a data migration. If we needed to restore the value - # of `template`, we would look for entries with `project_id IS NULL`. - add_column_with_default :services, :template, :boolean, default: false, allow_null: true # rubocop:disable Migration/AddColumnWithDefault - end - # rubocop:enable Migration/UpdateLargeTable - - def down - # NOP since the column is expected to exist - end -end |