From 0b162b2c1e8a1d0361ca70e998786b3ace6de100 Mon Sep 17 00:00:00 2001 From: Jesus Federico Date: Thu, 2 Feb 2023 17:30:46 +0100 Subject: [PATCH] LTI-116: Added index nonce to lti_launches (#15) --- .gitignore | 1 + ..._add_nonce_index_to_rails_lti2_provider_lti_launches.rb | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 db/migrate/20220916174734_add_nonce_index_to_rails_lti2_provider_lti_launches.rb diff --git a/.gitignore b/.gitignore index bcceaa9..f67db4e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.ruby-version .bundle/ Gemfile.lock log/*.log diff --git a/db/migrate/20220916174734_add_nonce_index_to_rails_lti2_provider_lti_launches.rb b/db/migrate/20220916174734_add_nonce_index_to_rails_lti2_provider_lti_launches.rb new file mode 100644 index 0000000..7aa07fe --- /dev/null +++ b/db/migrate/20220916174734_add_nonce_index_to_rails_lti2_provider_lti_launches.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddNonceIndexToRailsLti2ProviderLtiLaunches < ActiveRecord::Migration[6.0] + def change + add_index('rails_lti2_provider_lti_launches', %w[nonce], name: 'index_launch_nonce', unique: true) + end +end