2018-11-13 06:33:45 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-12-12 10:38:40 -05:00
|
|
|
class CreateClustersApplicationsCertManager < ActiveRecord::Migration[4.2]
|
2018-11-13 06:33:45 -05:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
|
|
|
create_table :clusters_applications_cert_managers do |t|
|
2018-11-21 16:07:17 -05:00
|
|
|
t.references :cluster, null: false, index: false, foreign_key: { on_delete: :cascade }
|
2018-11-13 06:33:45 -05:00
|
|
|
t.integer :status, null: false
|
|
|
|
t.string :version, null: false
|
2018-11-19 12:29:28 -05:00
|
|
|
t.string :email, null: false
|
2018-11-13 06:33:45 -05:00
|
|
|
t.timestamps_with_timezone null: false
|
|
|
|
t.text :status_reason
|
2018-11-21 15:26:11 -05:00
|
|
|
t.index :cluster_id, unique: true
|
2018-11-13 06:33:45 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|