Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Rathi <amit@hypertrack.io>2018-11-19 20:29:28 +0300
committerAmit Rathi <amit@hypertrack.io>2018-11-19 20:29:28 +0300
commit95e3a80edbb2c47353bdff13659cafd5c4564b5d (patch)
treea1f75133936eeaa46d578d994a8957a112e2bdbb /db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
parentfeee33e0dc3870c64143f90d8d502bf78240a3b0 (diff)
adding cluster_id index to cert_manager migrartion
Diffstat (limited to 'db/migrate/20181101191341_create_clusters_applications_cert_manager.rb')
-rw-r--r--db/migrate/20181101191341_create_clusters_applications_cert_manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20181101191341_create_clusters_applications_cert_manager.rb b/db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
index 26b15fefc3a..5051634327f 100644
--- a/db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
+++ b/db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
@@ -7,10 +7,10 @@ class CreateClustersApplicationsCertManager < ActiveRecord::Migration
def change
create_table :clusters_applications_cert_managers do |t|
- t.references :cluster, null: false, unique: true, foreign_key: { on_delete: :cascade }
+ t.references :cluster, null: false, unique: true, index: true, foreign_key: { on_delete: :cascade }
t.integer :status, null: false
t.string :version, null: false
- t.string :email, null:false
+ t.string :email, null: false
t.timestamps_with_timezone null: false
t.text :status_reason
end