diff --git a/db/migrate/20240418233828_create_accredited_representative_portal_verified_representatives.rb b/db/migrate/20240418233828_create_accredited_representative_portal_verified_representatives.rb new file mode 100644 index 00000000000..d5e5b1fc7ab --- /dev/null +++ b/db/migrate/20240418233828_create_accredited_representative_portal_verified_representatives.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +class CreateAccreditedRepresentativePortalVerifiedRepresentatives < ActiveRecord::Migration[7.1] + def change + create_table :accredited_representative_portal_verified_representatives do |t| + t.string :ogc_registration_number, null: false + t.string :first_name + t.string :last_name + t.string :middle_initial + t.string :email, null: false + + t.timestamps + + t.index 'ogc_registration_number', unique: true, name: 'index_verified_representatives_on_ogc_number' + t.index 'email', unique: true, name: 'index_verified_representatives_on_email' + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 8ef34f9a216..ce5577884fc 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[7.1].define(version: 2024_04_17_130647) do +ActiveRecord::Schema[7.1].define(version: 2024_04_18_233828) do # These are extensions that must be enabled in order to support this database enable_extension "btree_gin" enable_extension "pg_stat_statements" @@ -128,6 +128,16 @@ t.index ["poa_code"], name: "index_accredited_organizations_on_poa_code", unique: true end + create_table "accredited_representative_portal_verified_representatives", force: :cascade do |t| + t.string "ogc_registration_number", null: false + t.string "first_name" + t.string "last_name" + t.string "middle_initial" + t.string "email", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false