diff --git a/db/migrate/20240417130647_remove_dob_and_ssn_from_veteran_representatives.rb b/db/migrate/20240417130647_remove_dob_and_ssn_from_veteran_representatives.rb new file mode 100644 index 00000000000..ea4dea632c1 --- /dev/null +++ b/db/migrate/20240417130647_remove_dob_and_ssn_from_veteran_representatives.rb @@ -0,0 +1,9 @@ +class RemoveDobAndSsnFromVeteranRepresentatives < ActiveRecord::Migration[7.1] + def change + safety_assured do + remove_column :veteran_representatives, :ssn_ciphertext, :text + remove_column :veteran_representatives, :dob_ciphertext, :text + remove_column :veteran_representatives, :encrypted_kms_key, :text + end + end +end diff --git a/db/schema.rb b/db/schema.rb index b4e248bd815..b07838a80dc 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_11_235242) do +ActiveRecord::Schema[7.1].define(version: 2024_04_17_130647) do # These are extensions that must be enabled in order to support this database enable_extension "btree_gin" enable_extension "pg_stat_statements" @@ -22,13 +22,13 @@ create_table "account_login_stats", force: :cascade do |t| t.bigint "account_id", null: false - t.datetime "idme_at", precision: nil - t.datetime "myhealthevet_at", precision: nil - t.datetime "dslogon_at", precision: nil + t.datetime "idme_at" + t.datetime "myhealthevet_at" + t.datetime "dslogon_at" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "current_verification" - t.datetime "logingov_at", precision: nil + t.datetime "logingov_at" t.index ["account_id"], name: "index_account_login_stats_on_account_id", unique: true t.index ["current_verification"], name: "index_account_login_stats_on_current_verification" t.index ["dslogon_at"], name: "index_account_login_stats_on_dslogon_at" @@ -42,8 +42,8 @@ t.string "idme_uuid" t.string "icn" t.string "edipi" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "sec_id" t.string "logingov_uuid" t.index ["icn"], name: "index_accounts_on_icn" @@ -125,7 +125,7 @@ t.string "record_type", null: false t.bigint "record_id", null: false t.bigint "blob_id", null: false - t.datetime "created_at", precision: nil, null: false + t.datetime "created_at", null: false t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true end @@ -137,7 +137,7 @@ t.text "metadata" t.bigint "byte_size", null: false t.string "checksum", null: false - t.datetime "created_at", precision: nil, null: false + t.datetime "created_at", null: false t.string "service_name", null: false t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true end @@ -186,8 +186,8 @@ create_table "appeals_api_higher_level_reviews", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.string "status", default: "pending", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "code" t.string "detail" t.string "source" @@ -224,7 +224,7 @@ t.string "to" t.string "statusable_type" t.string "statusable_id" - t.datetime "status_update_time", precision: nil + t.datetime "status_update_time" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "code" @@ -258,8 +258,8 @@ t.string "status" t.string "transaction_id" t.string "transaction_status" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.text "metadata_ciphertext" t.text "encrypted_kms_key" t.uuid "user_account_id" @@ -272,8 +272,8 @@ t.index ["user_uuid"], name: "index_async_transactions_on_user_uuid" end - create_table "average_days_for_claim_completions", id: :serial, force: :cascade do |t| - t.float "average_days", null: false + create_table "average_days_for_claim_completions", force: :cascade do |t| + t.float "average_days" t.datetime "created_at", null: false t.datetime "updated_at", null: false end @@ -293,8 +293,8 @@ t.jsonb "feedback" t.jsonb "access" t.string "fingerprint" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.geography "location", limit: {:srid=>4326, :type=>"st_point", :geographic=>true} t.boolean "mobile" t.string "active_status" @@ -315,8 +315,8 @@ create_table "claims_api_auto_established_claims", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.string "status" t.integer "evss_id" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "md5" t.string "source" t.string "flashes", default: [], array: true @@ -369,8 +369,8 @@ t.string "status" t.string "current_poa" t.string "md5" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "vbms_new_document_version_ref_id" t.string "vbms_document_series_ref_id" t.string "vbms_error_message" @@ -387,8 +387,8 @@ end create_table "claims_api_supporting_documents", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.uuid "auto_established_claim_id" t.text "file_data_ciphertext" t.text "encrypted_kms_key" @@ -425,8 +425,8 @@ t.string "email_confirmation_id" t.string "enrollment_id" t.string "batch_id" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.text "raw_form_data_ciphertext" t.text "eligibility_info_ciphertext" t.text "form_data_ciphertext" @@ -440,8 +440,8 @@ create_table "covid_vaccine_registration_submissions", id: :serial, force: :cascade do |t| t.string "sid" t.uuid "account_id" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.boolean "expanded", default: false, null: false t.boolean "sequestered", default: false, null: false t.string "email_confirmation_id" @@ -489,8 +489,8 @@ t.integer "code", null: false t.string "medical_term", null: false t.string "lay_term" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["code"], name: "index_disability_contentions_on_code", unique: true t.index ["lay_term"], name: "index_disability_contentions_on_lay_term", opclass: :gin_trgm_ops, using: :gin t.index ["medical_term"], name: "index_disability_contentions_on_medical_term", opclass: :gin_trgm_ops, using: :gin @@ -501,19 +501,19 @@ t.string "unit" t.geography "polygon", limit: {:srid=>4326, :type=>"st_polygon", :geographic=>true}, null: false t.string "vha_facility_id", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "min" t.integer "max" - t.datetime "vssc_extract_date", precision: nil, default: "2001-01-01 00:00:00" + t.datetime "vssc_extract_date", default: "2001-01-01 00:00:00" t.index ["polygon"], name: "index_drivetime_bands_on_polygon", using: :gist end create_table "education_benefits_claims", id: :serial, force: :cascade do |t| - t.datetime "submitted_at", precision: nil - t.datetime "processed_at", precision: nil - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "submitted_at" + t.datetime "processed_at" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "regional_processing_office", null: false t.string "form_type", default: "1990" t.integer "saved_claim_id", null: false @@ -526,8 +526,8 @@ create_table "education_benefits_submissions", id: :serial, force: :cascade do |t| t.string "region", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.boolean "chapter33", default: false, null: false t.boolean "chapter30", default: false, null: false t.boolean "chapter1606", default: false, null: false @@ -553,8 +553,8 @@ t.datetime "updated_at", null: false t.boolean "poa" t.integer "remaining_entitlement" - t.datetime "denial_email_sent_at", precision: nil - t.datetime "confirmation_email_sent_at", precision: nil + t.datetime "denial_email_sent_at" + t.datetime "confirmation_email_sent_at" t.text "auth_headers_json_ciphertext" t.text "encrypted_kms_key" t.uuid "user_account_id" @@ -566,8 +566,8 @@ create_table "evss_claims", id: :serial, force: :cascade do |t| t.integer "evss_id", null: false t.json "data", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "user_uuid", null: false t.json "list_data", default: {}, null: false t.boolean "requested_decision", default: false, null: false @@ -584,8 +584,8 @@ t.string "gate_name" t.string "value" t.string "user" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["feature_name"], name: "index_feature_toggle_events_on_feature_name" end @@ -598,13 +598,12 @@ t.datetime "updated_at", null: false t.datetime "flagged_value_updated_at" t.index ["ip_address", "representative_id", "flag_type", "flagged_value_updated_at"], name: "index_unique_constraint_fields", unique: true - t.index ["ip_address", "representative_id", "flag_type"], name: "index_unique_flagged_veteran_representative", unique: true end create_table "flipper_features", force: :cascade do |t| t.string "key", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["key"], name: "index_flipper_features_on_key", unique: true end @@ -612,14 +611,14 @@ t.string "feature_key", null: false t.string "key", null: false t.text "value" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["feature_key", "key", "value"], name: "index_flipper_gates_on_feature_key_and_key_and_value", unique: true end create_table "form1010cg_submissions", force: :cascade do |t| t.string "carma_case_id", limit: 18, null: false - t.datetime "accepted_at", precision: nil, null: false + t.datetime "accepted_at", null: false t.json "metadata" t.json "attachments" t.datetime "created_at", null: false @@ -646,7 +645,7 @@ t.string "status", null: false t.string "error_class" t.string "error_message" - t.datetime "updated_at", precision: nil, null: false + t.datetime "updated_at", null: false t.jsonb "bgjob_errors", default: {} t.index ["bgjob_errors"], name: "index_form526_job_statuses_on_bgjob_errors", using: :gin t.index ["form526_submission_id"], name: "index_form526_job_statuses_on_form526_submission_id" @@ -658,8 +657,8 @@ t.integer "saved_claim_id", null: false t.integer "submitted_claim_id" t.boolean "workflow_complete", default: false, null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.boolean "multiple_birls", comment: "*After* a SubmitForm526 Job fails, a lookup is done to see if the veteran has multiple BIRLS IDs. This field gets set to true if that is the case. If the initial submit job succeeds, this field will remain false whether or not the veteran has multiple BIRLS IDs --so this field cannot technically be used to sum all Form526 veterans that have multiple BIRLS. This field /can/ give us an idea of how often having multiple BIRLS IDs is a problem." t.text "auth_headers_json_ciphertext" t.text "form_json_ciphertext" @@ -691,8 +690,8 @@ end create_table "form_attachments", id: :serial, force: :cascade do |t| - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.uuid "guid", null: false t.string "type", null: false t.text "file_data_ciphertext" @@ -734,9 +733,9 @@ t.string "edipi", null: false t.string "first_name", null: false t.string "last_name", null: false - t.datetime "dob", precision: nil, null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "dob", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.text "ssn_ciphertext" t.text "encrypted_kms_key" t.index ["edipi"], name: "index_gibs_not_found_users_on_edipi" @@ -758,15 +757,15 @@ t.integer "msa", null: false t.string "msa_name" t.integer "version", null: false - t.datetime "created", precision: nil, null: false - t.datetime "updated", precision: nil + t.datetime "created", null: false + t.datetime "updated" t.string "created_by" t.string "updated_by" end create_table "health_care_applications", id: :serial, force: :cascade do |t| - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "state", default: "pending", null: false t.string "form_submission_id_string" t.string "timestamp" @@ -788,18 +787,18 @@ create_table "id_card_announcement_subscriptions", id: :serial, force: :cascade do |t| t.string "email", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["email"], name: "index_id_card_announcement_subscriptions_on_email", unique: true end create_table "in_progress_forms", id: :serial, force: :cascade do |t| t.string "user_uuid", null: false t.string "form_id", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.json "metadata" - t.datetime "expires_at", precision: nil + t.datetime "expires_at" t.text "form_data_ciphertext" t.text "encrypted_kms_key" t.uuid "user_account_id" @@ -818,19 +817,19 @@ create_table "invalid_letter_address_edipis", id: :serial, force: :cascade do |t| t.string "edipi", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["edipi"], name: "index_invalid_letter_address_edipis_on_edipi" end create_table "maintenance_windows", id: :serial, force: :cascade do |t| t.string "pagerduty_id" t.string "external_service" - t.datetime "start_time", precision: nil - t.datetime "end_time", precision: nil + t.datetime "start_time" + t.datetime "end_time" t.string "description" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["end_time"], name: "index_maintenance_windows_on_end_time" t.index ["pagerduty_id"], name: "index_maintenance_windows_on_pagerduty_id" t.index ["start_time"], name: "index_maintenance_windows_on_start_time" @@ -865,8 +864,8 @@ t.uuid "handle", null: false t.uuid "user_account_id", null: false t.string "hashed_refresh_token", null: false - t.datetime "refresh_expiration", precision: nil, null: false - t.datetime "refresh_creation", precision: nil, null: false + t.datetime "refresh_expiration", null: false + t.datetime "refresh_creation", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.bigint "user_verification_id", null: false @@ -919,10 +918,10 @@ t.uuid "guid" t.string "type" t.string "form_id" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "saved_claim_id" - t.datetime "completed_at", precision: nil + t.datetime "completed_at" t.text "file_data_ciphertext" t.text "encrypted_kms_key" t.index ["guid"], name: "index_persistent_attachments_on_guid", unique: true @@ -932,8 +931,8 @@ create_table "personal_information_logs", id: :serial, force: :cascade do |t| t.string "error_class", null: false - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.text "data_ciphertext" t.text "encrypted_kms_key" t.index ["created_at"], name: "index_personal_information_logs_on_created_at" @@ -947,7 +946,7 @@ t.bigint "query_hash" t.float "total_time" t.bigint "calls" - t.datetime "captured_at", precision: nil + t.datetime "captured_at" t.index ["database", "captured_at"], name: "index_pghero_query_stats_on_database_and_captured_at" end @@ -956,7 +955,7 @@ t.text "schema" t.text "relation" t.bigint "size" - t.datetime "captured_at", precision: nil + t.datetime "captured_at" t.index ["database", "captured_at"], name: "index_pghero_space_stats_on_database_and_captured_at" end @@ -965,22 +964,22 @@ t.string "application_uuid" t.string "return_description", null: false t.integer "return_code" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["application_uuid"], name: "index_preneed_submissions_on_application_uuid", unique: true t.index ["tracking_number"], name: "index_preneed_submissions_on_tracking_number", unique: true end create_table "saved_claims", id: :serial, force: :cascade do |t| - t.datetime "created_at", precision: nil - t.datetime "updated_at", precision: nil + t.datetime "created_at" + t.datetime "updated_at" t.string "form_id" t.uuid "guid", null: false t.string "type" t.text "form_ciphertext" t.text "encrypted_kms_key" - t.string "uploaded_forms", array: true - t.datetime "itf_datetime", precision: nil + t.string "uploaded_forms", default: [], array: true + t.datetime "itf_datetime" t.index ["created_at", "type"], name: "index_saved_claims_on_created_at_and_type" t.index ["guid"], name: "index_saved_claims_on_guid", unique: true t.index ["id", "type"], name: "index_saved_claims_on_id_and_type" @@ -1013,7 +1012,7 @@ t.integer "rpo" t.integer "number_of_submissions" t.string "filename" - t.datetime "successful_at", precision: nil + t.datetime "successful_at" t.integer "retry_attempt", default: 0 t.datetime "created_at", null: false t.datetime "updated_at", null: false @@ -1026,8 +1025,8 @@ t.string "description", null: false t.integer "state_id", null: false t.integer "version", null: false - t.datetime "created", precision: nil, null: false - t.datetime "updated", precision: nil + t.datetime "created", null: false + t.datetime "updated" t.string "created_by" t.string "updated_by" end @@ -1047,7 +1046,7 @@ t.integer "add_ninety_day_hospital_copay" t.integer "outpatient_basic_care_copay" t.integer "outpatient_specialty_copay" - t.datetime "threshold_effective_date", precision: nil + t.datetime "threshold_effective_date" t.integer "aid_and_attendance_threshold" t.integer "outpatient_preventive_copay" t.integer "medication_copay" @@ -1058,8 +1057,8 @@ t.integer "inpatient_per_diem" t.string "description" t.integer "version", null: false - t.datetime "created", precision: nil, null: false - t.datetime "updated", precision: nil + t.datetime "created", null: false + t.datetime "updated" t.string "created_by" t.string "updated_by" end @@ -1070,8 +1069,8 @@ t.integer "fips_code", null: false t.integer "country_id", null: false t.integer "version", null: false - t.datetime "created", precision: nil, null: false - t.datetime "updated", precision: nil + t.datetime "created", null: false + t.datetime "updated" t.string "created_by" t.string "updated_by" end @@ -1083,8 +1082,8 @@ t.integer "state_id", null: false t.integer "county_number", null: false t.integer "version", null: false - t.datetime "created", precision: nil, null: false - t.datetime "updated", precision: nil + t.datetime "created", null: false + t.datetime "updated" t.string "created_by" t.string "updated_by" end @@ -1100,8 +1099,8 @@ create_table "test_user_dashboard_tud_account_availability_logs", force: :cascade do |t| t.string "account_uuid" - t.datetime "checkout_time", precision: nil - t.datetime "checkin_time", precision: nil + t.datetime "checkout_time" + t.datetime "checkin_time" t.boolean "has_checkin_error" t.boolean "is_manual_checkin" t.datetime "created_at", null: false @@ -1115,12 +1114,12 @@ t.string "middle_name" t.string "last_name" t.string "gender" - t.datetime "birth_date", precision: nil + t.datetime "birth_date" t.integer "ssn" t.string "phone" t.string "email" t.string "password" - t.datetime "checkout_time", precision: nil + t.datetime "checkout_time" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.text "services" @@ -1133,8 +1132,8 @@ end create_table "user_acceptable_verified_credentials", force: :cascade do |t| - t.datetime "acceptable_verified_credential_at", precision: nil - t.datetime "idme_verified_credential_at", precision: nil + t.datetime "acceptable_verified_credential_at" + t.datetime "idme_verified_credential_at" t.uuid "user_account_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false @@ -1165,7 +1164,7 @@ t.string "logingov_uuid" t.string "mhv_uuid" t.string "dslogon_uuid" - t.datetime "verified_at", precision: nil + t.datetime "verified_at" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "backing_idme_uuid" @@ -1187,15 +1186,15 @@ t.date "last_revision_on" t.integer "pages" t.string "sha256" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.boolean "valid_pdf", default: false t.text "form_usage" t.text "form_tool_intro" t.string "form_tool_url" t.string "form_type" t.string "language" - t.datetime "deleted_at", precision: nil + t.datetime "deleted_at" t.string "related_forms", array: true t.jsonb "benefit_categories" t.string "form_details_url" @@ -1242,8 +1241,8 @@ t.string "status", default: "pending", null: false t.string "code" t.string "detail" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.boolean "s3_deleted" t.string "consumer_name" t.uuid "consumer_id" @@ -1271,8 +1270,8 @@ t.string "name" t.string "phone" t.string "state", limit: 2 - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "address_type" t.string "city" t.string "country_code_iso3" @@ -1302,13 +1301,10 @@ t.string "last_name" t.string "email" t.string "phone" - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "poa_codes", default: [], array: true t.string "user_types", default: [], array: true - t.text "ssn_ciphertext" - t.text "dob_ciphertext" - t.text "encrypted_kms_key" t.string "middle_initial" t.string "address_type" t.string "city" @@ -1337,8 +1333,8 @@ end create_table "vic_submissions", id: :serial, force: :cascade do |t| - t.datetime "created_at", precision: nil, null: false - t.datetime "updated_at", precision: nil, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "state", default: "pending", null: false t.uuid "guid", null: false t.json "response" @@ -1368,10 +1364,10 @@ create_table "vye_awards", force: :cascade do |t| t.integer "user_info_id" t.string "cur_award_ind" - t.datetime "award_begin_date", precision: nil - t.datetime "award_end_date", precision: nil + t.datetime "award_begin_date" + t.datetime "award_end_date" t.integer "training_time" - t.datetime "payment_date", precision: nil + t.datetime "payment_date" t.decimal "monthly_rate" t.string "begin_rsn" t.string "end_rsn" @@ -1408,7 +1404,7 @@ t.text "ssn_ciphertext" t.string "claim_no_ciphertext" t.string "doc_type" - t.datetime "queue_date", precision: nil + t.datetime "queue_date" t.string "rpo" t.text "encrypted_kms_key" t.datetime "created_at", null: false @@ -1434,9 +1430,9 @@ t.text "stub_nm_ciphertext" t.string "mr_status" t.string "rem_ent" - t.datetime "cert_issue_date", precision: nil - t.datetime "del_date", precision: nil - t.datetime "date_last_certified", precision: nil + t.datetime "cert_issue_date" + t.datetime "del_date" + t.datetime "date_last_certified" t.integer "rpo_code" t.string "fac_code" t.decimal "payment_amt" @@ -1466,8 +1462,8 @@ t.string "change_flag" t.integer "rpo_code" t.boolean "rpo_flag" - t.datetime "act_begin", precision: nil - t.datetime "act_end", precision: nil + t.datetime "act_begin" + t.datetime "act_end" t.string "source_ind" t.datetime "created_at", null: false t.datetime "updated_at", null: false