Commit 95e3a80e authored by Amit Rathi's avatar Amit Rathi

adding cluster_id index to cert_manager migrartion

parent feee33e0
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment