summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAmit Rathi <amit@hypertrack.io>2018-11-13 17:03:45 +0530
committerAmit Rathi <amit@hypertrack.io>2018-11-13 17:03:45 +0530
commit27ce6140433afa5b758272af204820599cf4fac4 (patch)
treef022371675f7fdc7eb03497ef5259962c760fd87 /db
parent0e8e75581b1e62502174a45742834f4000c0b335 (diff)
downloadgitlab-ce-27ce6140433afa5b758272af204820599cf4fac4.tar.gz
Cert manager migration, cluster_issuer etc.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20181101191341_create_clusters_applications_cert_manager.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/db/migrate/20181101191341_create_clusters_applications_cert_manager.rb b/db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
new file mode 100644
index 00000000000..dd1757fa635
--- /dev/null
+++ b/db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class CreateClustersApplicationsCertManager < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ create_table :clusters_applications_cert_managers do |t|
+ t.references :cluster, null: false, unique: true, foreign_key: { on_delete: :cascade }
+ t.integer :status, null: false
+ t.string :version, null: false
+ t.string :email, null:false
+ t.timestamps_with_timezone null: false
+ t.text :status_reason
+ end
+ end
+end