diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-15 16:34:55 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-15 16:34:55 +0300 |
commit | c8dc8c388719f8960a1288fa43212c62f1acffc0 (patch) | |
tree | 7d22203d93d3deb93afc42576424a015a7f4b952 /db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb | |
parent | eaf7fd1bef14feadb58aa36ac1a11f6f4a4890b8 (diff) |
Add missing cluster_id on knative
Diffstat (limited to 'db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb')
-rw-r--r-- | db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb b/db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb index 8a639e3275b..176d55565d8 100644 --- a/db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb +++ b/db/migrate/20181030154446_add_missing_indexes_for_foreign_keys.rb @@ -16,6 +16,7 @@ class AddMissingIndexesForForeignKeys < ActiveRecord::Migration add_concurrent_index(:clusters_applications_ingress, :cluster_id, unique: true) add_concurrent_index(:clusters_applications_jupyter, :cluster_id, unique: true) add_concurrent_index(:clusters_applications_jupyter, :oauth_application_id) + add_concurrent_index(:clusters_applications_knative, :cluster_id, unique: true) add_concurrent_index(:clusters_applications_prometheus, :cluster_id, unique: true) add_concurrent_index(:fork_network_members, :forked_from_project_id) add_concurrent_index(:internal_ids, :namespace_id) @@ -45,6 +46,7 @@ class AddMissingIndexesForForeignKeys < ActiveRecord::Migration remove_concurrent_index(:clusters_applications_ingress, :cluster_id, unique: true) remove_concurrent_index(:clusters_applications_jupyter, :cluster_id, unique: true) remove_concurrent_index(:clusters_applications_jupyter, :oauth_application_id) + remove_concurrent_index(:clusters_applications_knative, :cluster_id, unique: true) remove_concurrent_index(:clusters_applications_prometheus, :cluster_id, unique: true) remove_concurrent_index(:fork_network_members, :forked_from_project_id) remove_concurrent_index(:internal_ids, :namespace_id) |