blob: 2c7b7d89bf5fc20a4eb8eec8fa7271f23271bc1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
# See https://docs.gitlab.com/ee/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class DropClustersApplicationsCilium < Gitlab::Database::Migration[2.1]
def up
drop_table :clusters_applications_cilium
end
# Based on original migration:
# https://gitlab.com/gitlab-org/gitlab/-/blob/b237f836df215a4ada92b9406733e6cd2483ca2d/db/migrate/20200615234047_create_clusters_applications_cilium.rb
def down
create_table :clusters_applications_cilium do |t|
t.references :cluster, null: false, index: { unique: true }
t.timestamps_with_timezone null: false
t.integer :status, null: false
t.text :status_reason # rubocop:disable Migration/AddLimitToTextColumns
end
end
end
|