From e79d45284d7daf68dfa5f22d5e8b19f1e38d16db Mon Sep 17 00:00:00 2001 From: Jonathan Hooper Date: Wed, 31 Oct 2018 12:54:59 -0500 Subject: [PATCH] Add IAL and AAL columns to SP **Why**: So we can start tracking the IAL and AAL of SPs in the database and build policies around them. --- .../20181029203754_add_aal_and_ial_to_service_provider.rb | 6 ++++++ db/schema.rb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20181029203754_add_aal_and_ial_to_service_provider.rb diff --git a/db/migrate/20181029203754_add_aal_and_ial_to_service_provider.rb b/db/migrate/20181029203754_add_aal_and_ial_to_service_provider.rb new file mode 100644 index 00000000000..65a57fc7f1c --- /dev/null +++ b/db/migrate/20181029203754_add_aal_and_ial_to_service_provider.rb @@ -0,0 +1,6 @@ +class AddAalAndIalToServiceProvider < ActiveRecord::Migration[5.1] + def change + add_column :service_providers, :aal, :integer + add_column :service_providers, :ial, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 4fa8f519947..cb124630707 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20181015153200) do +ActiveRecord::Schema.define(version: 20181029203754) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -205,6 +205,8 @@ t.string "redirect_uris", default: [], array: true t.integer "agency_id" t.text "failure_to_proof_url" + t.integer "aal" + t.integer "ial" t.index ["issuer"], name: "index_service_providers_on_issuer", unique: true end