diff options
author | Amit Rathi <amit@hypertrack.io> | 2018-11-19 20:29:28 +0300 |
---|---|---|
committer | Amit Rathi <amit@hypertrack.io> | 2018-11-19 20:29:28 +0300 |
commit | 95e3a80edbb2c47353bdff13659cafd5c4564b5d (patch) | |
tree | a1f75133936eeaa46d578d994a8957a112e2bdbb /db/migrate/20181101191341_create_clusters_applications_cert_manager.rb | |
parent | feee33e0dc3870c64143f90d8d502bf78240a3b0 (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.rb | 4 |
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 |