diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /db/migrate/20210316171009_create_packages_helm_file_metadata.rb | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'db/migrate/20210316171009_create_packages_helm_file_metadata.rb')
-rw-r--r-- | db/migrate/20210316171009_create_packages_helm_file_metadata.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20210316171009_create_packages_helm_file_metadata.rb b/db/migrate/20210316171009_create_packages_helm_file_metadata.rb index f5a9c5f1146..47a9b808e63 100644 --- a/db/migrate/20210316171009_create_packages_helm_file_metadata.rb +++ b/db/migrate/20210316171009_create_packages_helm_file_metadata.rb @@ -5,7 +5,7 @@ class CreatePackagesHelmFileMetadata < ActiveRecord::Migration[6.0] DOWNTIME = false - def change + def up create_table_with_constraints :packages_helm_file_metadata, id: false do |t| t.timestamps_with_timezone t.references :package_file, primary_key: true, index: false, default: nil, null: false, foreign_key: { to_table: :packages_package_files, on_delete: :cascade }, type: :bigint @@ -17,4 +17,10 @@ class CreatePackagesHelmFileMetadata < ActiveRecord::Migration[6.0] t.index :channel end end + + def down + with_lock_retries do + drop_table :packages_helm_file_metadata + end + end end |