From 509a6e01fec6e589aaf6466e7cb57d78daa60634 Mon Sep 17 00:00:00 2001 From: KseniaGovorun Date: Mon, 18 Nov 2024 16:36:23 +0200 Subject: [PATCH] Added migrate for authorization model --- ...131028_add_index_to_authorizations_on_uid_and_provider.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20241114131028_add_index_to_authorizations_on_uid_and_provider.rb diff --git a/db/migrate/20241114131028_add_index_to_authorizations_on_uid_and_provider.rb b/db/migrate/20241114131028_add_index_to_authorizations_on_uid_and_provider.rb new file mode 100644 index 000000000..01ba6bfb2 --- /dev/null +++ b/db/migrate/20241114131028_add_index_to_authorizations_on_uid_and_provider.rb @@ -0,0 +1,5 @@ +class AddIndexToAuthorizationsOnUidAndProvider < ActiveRecord::Migration[7.1] + def change + add_index :authorizations, [:uid, :provider], unique: true + end +end