index
int64
0
0
repo_id
stringclasses
829 values
file_path
stringlengths
34
254
content
stringlengths
6
5.38M
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20230614144145_create_service_account_config.rb
class CreateServiceAccountConfig < ActiveRecord::Migration[6.1] def change create_table :service_account_configs do |t| t.string :service_account_id, null: false, index: { unique: true } t.text :description, null: false t.text :scopes, array: true, null: false t.string :access_token_audien...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240724183559_add_transaction_id_to_auto_established_claim.rb
class AddTransactionIdToAutoEstablishedClaim < ActiveRecord::Migration[7.1] def change add_column :claims_api_auto_established_claims, :transaction_id, :string, default: nil end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210901182619_add_logingov_uuid_to_accounts.rb
class AddLogingovUuidToAccounts < ActiveRecord::Migration[6.1] disable_ddl_transaction! def change add_column :accounts, :logingov_uuid, :string add_index :accounts, :logingov_uuid, unique: true, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20251121181958_add_index_to_digital_dispute_submissions_guid.rb
# frozen_string_literal: true class AddIndexToDigitalDisputeSubmissionsGuid < ActiveRecord::Migration[7.2] disable_ddl_transaction! def change add_index :digital_dispute_submissions, :guid, unique: true, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241021182334_create_decision_review_notification_audit_log.rb
class CreateDecisionReviewNotificationAuditLog < ActiveRecord::Migration[7.1] def change create_table :decision_review_notification_audit_logs do |t| t.text :notification_id t.text :status t.text :reference t.text :payload_ciphertext t.text :encrypted_kms_key t.timestamps ...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240712172822_remove_submitted_claim_uuid_index_from_form_submissions.rb
class RemoveSubmittedClaimUuidIndexFromFormSubmissions < ActiveRecord::Migration[7.1] def change remove_index :form_submissions, name: 'index_form_submissions_on_submitted_claim_uuid', if_exists: true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250827154801_create_debt_transaction_logs.rb
class CreateDebtTransactionLogs < ActiveRecord::Migration[7.2] def change create_table :debt_transaction_logs, id: :uuid do |t| t.references :transactionable, polymorphic: true, null: false, type: :uuid t.string :transaction_type, null: false t.uuid :user_uuid, null: false t.jsonb :debt_id...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20221121200033_drop_beta_registrations.rb
class DropBetaRegistrations < ActiveRecord::Migration[6.1] def up drop_table :beta_registrations end def down raise ActiveRecord::IrreversibleMigration end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20220324182532_create_inherited_proofing_complete.rb
class CreateInheritedProofingComplete < ActiveRecord::Migration[6.1] def change create_table :inherited_proof_verified_user_accounts do |t| t.references :user_account, type: :uuid, foreign_key: :true, null: false, index: { unique: true } t.timestamps end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250219232344_update_event_id_and_event_type_to_user_action_event.rb
class UpdateEventIdAndEventTypeToUserActionEvent < ActiveRecord::Migration[7.2] def change safety_assured do remove_column :user_action_events, :event_type, :integer add_column :user_action_events, :event_type, :string, null: false remove_column :user_action_events, :event_id, :string add_...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240513204946_remove_ivc_champva_forms_email_index.rb
class RemoveIvcChampvaFormsEmailIndex < ActiveRecord::Migration[7.1] def change remove_index :ivc_champva_forms, name: 'index_ivc_champva_forms_on_email', if_exists: true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20211029224522_update_associations_user_verifications_deprecated_user_accounts.rb
class UpdateAssociationsUserVerificationsDeprecatedUserAccounts < ActiveRecord::Migration[6.1] disable_ddl_transaction! def up drop_user_tables create_user_tables end def down drop_user_tables create_user_tables end private def drop_user_tables drop_table :deprecated_user_accounts ...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20221122003512_add_user_account_to_form526_submissions.rb
class AddUserAccountToForm526Submissions < ActiveRecord::Migration[6.1] def change safety_assured do add_reference :form526_submissions, :user_account, type: :uuid, foreign_key: true, null: true, index: true end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240315210805_drop_versions.rb
class DropVersions < ActiveRecord::Migration[7.1] # This table was previously used to store version history for the `VAForms::Form` model # The `paper_trail` gem has since been removed, and all data has been migrated to the `va_forms_forms` table def change drop_table :versions end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20220809142412_add_index_to_form5655_submissions.rb
class AddIndexToForm5655Submissions < ActiveRecord::Migration[6.1] disable_ddl_transaction! def change add_index :form5655_submissions, :user_uuid, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20230929163207_add_locked_to_user_verifications.rb
class AddLockedToUserVerifications < ActiveRecord::Migration[6.1] def change add_column :user_verifications, :locked, :boolean, null: false, default: false end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240210004449_create_nod_notification.rb
class CreateNodNotification < ActiveRecord::Migration[7.0] def change create_table :nod_notifications do |t| t.text :payload_ciphertext t.text :encrypted_kms_key t.timestamps end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240410212440_drop_accredited_organizations_accredited_representatives.rb
# frozen_string_literal: true class DropAccreditedOrganizationsAccreditedRepresentatives < ActiveRecord::Migration[7.1] def change drop_table :accredited_organizations_accredited_representatives, if_exists: true # rubocop:disable Rails/ReversibleMigration end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250919163644_remove_record_type_from_record_metadata.rb
# frozen_string_literal: true class RemoveRecordTypeFromRecordMetadata < ActiveRecord::Migration[7.2] def change safety_assured { remove_column :claims_api_record_metadata, :record_type, :string } end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250114210637_add_claims_api_processes.rb
class AddClaimsApiProcesses < ActiveRecord::Migration[7.2] def change create_table :claims_api_processes, id: :uuid do |t| t.uuid :processable_id, null: false t.string :processable_type, null: false t.string :step_type t.string :step_status t.datetime :completed_at t.jsonb :err...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210527143944_add_column_ranking_to_va_forms_forms.rb
class AddColumnRankingToVAFormsForms < ActiveRecord::Migration[6.0] def change add_column :va_forms_forms, :ranking, :float end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20211029133322_add_concurrent_indexes.rb
class AddConcurrentIndexes < ActiveRecord::Migration[6.1] disable_ddl_transaction! def change add_index :async_transactions, [:id, :type], algorithm: :concurrently add_index :form_attachments, [:id, :type], algorithm: :concurrently add_index :persistent_attachments, [:id, :type], algorithm: :concurrent...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240903124855_add_lighthouse_updated_at_to_form_submission_attempts.rb
class AddLighthouseUpdatedAtToFormSubmissionAttempts < ActiveRecord::Migration[7.1] def change add_column :form_submission_attempts, :lighthouse_updated_at, :datetime end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250407161056_add_user_account_id_to_form_email_matches_profile_logs.rb
class AddUserAccountIdToFormEmailMatchesProfileLogs < ActiveRecord::Migration[7.2] def change safety_assured do add_reference :form_email_matches_profile_logs, :user_account, type: :uuid, foreign_key: true, null: true, index: true end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240411153944_create_average_days_for_claim_completions.rb
# This migration comes from vye (originally 20240229184515) class CreateAverageDaysForClaimCompletions < ActiveRecord::Migration[7.1] def change create_table :average_days_for_claim_completions do |t| t.float :average_days t.timestamps end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240408152120_add_service_levels_and_credential_service_providers_to_client_configs.rb
class AddServiceLevelsAndCredentialServiceProvidersToClientConfigs < ActiveRecord::Migration[7.1] def change add_column :client_configs, :service_levels, :string, array: true, default: %w[ial1 ial2 loa1 loa3 min] add_column :client_configs, :credential_service_providers, :string, array: true, default: %w[logi...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20211028175431_create_deprecated_user_accounts.rb
class CreateDeprecatedUserAccounts < ActiveRecord::Migration[6.1] def change create_table :deprecated_user_accounts do |t| t.references :user_accounts, type: :uuid, foreign_key: :true, null: :false, index: { unique: true } t.references :user_verifications, foreign_key: :true, null: :false, index: { un...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240313211432_add_status_to_inprogress_form.rb
class AddStatusToInprogressForm < ActiveRecord::Migration[7.0] def change add_column :in_progress_forms, :status, :integer end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240611183430_update_veteran_icn_name_on_intent_to_file_queue_exhaustions.rb
class UpdateVeteranIcnNameOnIntentToFileQueueExhaustions < ActiveRecord::Migration[7.1] def change safety_assured do rename_column :intent_to_file_queue_exhaustions, :veteran_icn, :user_uuid change_column :intent_to_file_queue_exhaustions, :user_uuid, :string, null: false end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20251121181924_add_default_guid_to_digital_dispute_submissions.rb
# frozen_string_literal: true class AddDefaultGuidToDigitalDisputeSubmissions < ActiveRecord::Migration[7.2] def change change_column_default :digital_dispute_submissions, :guid, from: nil, to: -> { 'gen_random_uuid()' } end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250911092723_add_indexes_to_saved_claim_group.rb
# frozen_string_literal: true class AddIndexesToSavedClaimGroup < ActiveRecord::Migration[7.2] disable_ddl_transaction! def change add_index :saved_claim_group, :claim_group_guid, algorithm: :concurrently, if_not_exists: true add_index :saved_claim_group, :needs_kms_rotation, algorithm: :concurrently, if_...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20201123000822_add_upload_metadata_to_vba_documents_upload_submission.rb
# frozen_string_literal: true class AddUploadMetadataToVBADocumentsUploadSubmission < ActiveRecord::Migration[6.0] def change add_column :vba_documents_upload_submissions, :uploaded_pdf, :json end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20230914180448_add_state_to_form5655_submission.rb
class AddStateToForm5655Submission < ActiveRecord::Migration[6.1] def change add_column :form5655_submissions, :state, :integer, default: 0 add_column :form5655_submissions, :error_message, :string end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20220809134330_add_form5655_submissions_table.rb
class AddForm5655SubmissionsTable < ActiveRecord::Migration[6.1] def change create_table :form5655_submissions, id: :uuid do |t| t.string :user_uuid, null: false t.text :form_json_ciphertext, null: false t.text :metadata_ciphertext t.text :encrypted_kms_key t.timestamps en...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20230112220807_create_table_user_acceptable_verified_credential.rb
class CreateTableUserAcceptableVerifiedCredential < ActiveRecord::Migration[6.1] def change create_table :user_acceptable_verified_credentials do |t| t.datetime :acceptable_verified_credential_at, index: { name: 'index_user_avc_on_acceptable_verified_credential_at'} t.datetime :idme_verified_credentia...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20220217005515_create_form1095_bs.rb
class CreateForm1095Bs < ActiveRecord::Migration[6.1] def change create_table :form1095_bs, id: :uuid do |t| t.string :veteran_icn, null: false t.integer :tax_year, null: false t.jsonb :form_data_ciphertext, null: false t.text :encrypted_kms_key t.timestamps end add_ind...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240318190236_add_user_profile_id_to_tables.vye.rb
# This migration comes from vye (originally 20240316034337) class AddUserProfileIdToTables < ActiveRecord::Migration[7.1] def change add_column :vye_user_infos, :user_profile_id, :integer add_column :vye_pending_documents, :user_profile_id, :integer end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240425232006_drop_vye_bdn_clones.vye.rb
class DropVyeBdnClones < ActiveRecord::Migration[7.1] def change remove_index "vye_bdn_clones", column: [:is_active], unique: true, where: "(is_active IS NOT NULL)", name: "index_vye_bdn_clones_on_is_active", if_exists: true remove_index "vye_bdn_clones", column: [:export_ready], unique: true, where: "(export...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240410212727_drop_accredited_attorneys.rb
# frozen_string_literal: true class DropAccreditedAttorneys < ActiveRecord::Migration[7.1] def change drop_table :accredited_attorneys, if_exists: true # rubocop:disable Rails/ReversibleMigration end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210323001250_add_vaccine_expansion_fields.rb
class AddVaccineExpansionFields < ActiveRecord::Migration[6.0] def change add_column :covid_vaccine_registration_submissions, :expanded, :boolean, default: false, null: false add_column :covid_vaccine_registration_submissions, :sequestered, :boolean, default: false, null: false add_column :covid_vaccine_r...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20221118215335_drop_session_activities.rb
class DropSessionActivities < ActiveRecord::Migration[6.1] def up drop_table :session_activities end def down raise ActiveRecord::IrreversibleMigration end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250708104132_create_digital_dispute_submissions.rb
# frozen_string_literal: true class CreateDigitalDisputeSubmissions < ActiveRecord::Migration[7.2] def change create_table :digital_dispute_submissions, id: :uuid do |t| t.uuid :user_uuid, null: false t.references :user_account, foreign_key: true, type: :uuid t.jsonb :debt_identifiers, null: fa...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240716143101_index_user_profile_in_user_infos.vye.rb
# This migration comes from vye (originally 20240715000014) class IndexUserProfileInUserInfos < ActiveRecord::Migration[7.1] disable_ddl_transaction! def change add_index :vye_user_infos, :user_profile_id, algorithm: :concurrently, if_not_exists: true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20231113205953_remove_address_line_x_columns_from_veteran_organizations.rb
class RemoveAddressLineXColumnsFromVeteranOrganizations < ActiveRecord::Migration[6.1] def change safety_assured { remove_column :veteran_organizations, :address_line_1, :string remove_column :veteran_organizations, :address_line_2, :string remove_column :veteran_organizations, :address_line_3, ...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210128150813_add_column_to_education_stem_automated_decisions.rb
class AddColumnToEducationStemAutomatedDecisions < ActiveRecord::Migration[6.0] def change add_column :education_stem_automated_decisions, :encrypted_auth_headers_json_iv, :string end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20221122002707_add_user_account_to_async_transaction.rb
class AddUserAccountToAsyncTransaction < ActiveRecord::Migration[6.1] def change safety_assured do add_reference :async_transactions, :user_account, type: :uuid, foreign_key: true, null: true, index: true end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250409183138_remove_ves_data_from_ivc_champva_forms.rb
class RemoveVesDataFromIvcChampvaForms < ActiveRecord::Migration[7.2] def change safety_assured { remove_column :ivc_champva_forms, :ves_data } end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241219205816_create_excel_file_events.rb
class CreateExcelFileEvents < ActiveRecord::Migration[7.2] def change create_table :excel_file_events do |t| t.integer :number_of_submissions t.string :filename t.timestamp :successful_at t.integer :retry_attempt, default: 0 t.timestamps t.index :filename, name: "index_excel_fi...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250317205848_add_ves_details_to_ivc_champva_forms.rb
class AddVesDetailsToIvcChampvaForms < ActiveRecord::Migration[7.2] def change add_column :ivc_champva_forms, :application_uuid, :uuid add_column :ivc_champva_forms, :ves_status, :string add_column :ivc_champva_forms, :ves_data, :jsonb end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240430194448_create_veteran_onboardings.rb
class CreateVeteranOnboardings < ActiveRecord::Migration[7.1] def change create_table :veteran_onboardings do |t| t.string :icn t.boolean :display_onboarding_flow, default: true t.timestamps end add_index :veteran_onboardings, :icn, unique: true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250328144758_add_header_hash_index_to_claims_api_power_of_attorney.rb
class AddHeaderHashIndexToClaimsApiPowerOfAttorney < ActiveRecord::Migration[7.2] disable_ddl_transaction! def change add_index :claims_api_power_of_attorneys, :header_hash, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240501164743_attempt_may1_create_vye_bdn_clones.vye.rb
# This migration comes from vye (originally 20240501000104) class AttemptMay1CreateVyeBdnClones < ActiveRecord::Migration[7.1] def change drop_table :vye_bdn_clones if table_exists?(:vye_bdn_clones) create_table :vye_bdn_clones do |t| t.boolean :is_active t.boolean :export_ready t.date :...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240402195838_add_encrypted_data_to_personal_information_logs.rb
class AddEncryptedDataToPersonalInformationLogs < ActiveRecord::Migration[7.1] def change add_column :personal_information_logs, :data_ciphertext, :text add_column :personal_information_logs, :encrypted_kms_key, :text end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240315033526_add_address_details_to_vye_address_changes.vye.rb
# This migration comes from vye (originally 20240305040113) class AddAddressDetailsToVyeAddressChanges < ActiveRecord::Migration[7.0] def change add_column :vye_address_changes, :address_line5_ciphertext, :text add_column :vye_address_changes, :address_line6_ciphertext, :text add_column :vye_address_chang...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20231207022742_create_form_submissions.rb
class CreateFormSubmissions < ActiveRecord::Migration[6.1] def change create_table :form_submissions do |t| t.string :form_type, null: false t.uuid :benefits_intake_uuid t.uuid :submitted_claim_uuid t.jsonb :form_data, default: {} t.references :user_account, foreign_key: true, type: ...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240501164739_attempt_may1_remove_ssn_and_icn_from_vye_tables.vye.rb
# This migration comes from vye (originally 20240501000100) class AttemptMay1RemoveSsnAndIcnFromVyeTables < ActiveRecord::Migration[7.0] def change safety_assured do # For vye_user_infos remove_column :vye_user_infos, :icn, :string if column_exists?(:vye_user_infos, :icn) remove_column :vye_user...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210526185922_add_service_name_to_active_storage_blobs.active_storage.rb
# This migration comes from active_storage (originally 20190112182829) class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0] def up unless column_exists?(:active_storage_blobs, :service_name) add_column :active_storage_blobs, :service_name, :string, null: false if configured_service...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20221214161602_add_backup_submitted_claim_id_to_form526submissions.rb
class AddBackupSubmittedClaimIdToForm526submissions < ActiveRecord::Migration[6.1] def change add_column( :form526_submissions, :backup_submitted_claim_id, :string, comment: '*After* a SubmitForm526 Job has exhausted all attempts, a paper submission is generated and sent to Central Mail Po...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210331131558_create_questionnaire_responses.health_quest.rb
# frozen_string_literal: true # This migration comes from health_quest (originally 20210330134533) class CreateQuestionnaireResponses < ActiveRecord::Migration[6.0] def change create_table :health_quest_questionnaire_responses do |t| t.string :user_uuid, :appointment_id, :questionnaire_response_id t....
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241204222335_add_power_of_attorney_id_index_to_claims_api_power_of_attorney_requests.rb
class AddPowerOfAttorneyIdIndexToClaimsApiPowerOfAttorneyRequests < ActiveRecord::Migration[7.1] disable_ddl_transaction! def change add_index :claims_api_power_of_attorney_requests, :power_of_attorney_id, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240214185628_change_flipper_gates_value_to_text.rb
class ChangeFlipperGatesValueToText < ActiveRecord::Migration[7.0] def up change_column :flipper_gates, :value, :text end def down change_column :flipper_gates, :value, :string end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240712133408_create_accredited_representative_portal_pilot_representatives.rb
# NOTE: This table was dropped in the migration `DropAccreditedRepresentativePortalPilotRepresentatives` class CreateAccreditedRepresentativePortalPilotRepresentatives < ActiveRecord::Migration[7.1] def change create_table :accredited_representative_portal_pilot_representatives do |t| t.string :ogc_registra...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250911094106_add_foreign_key_to_saved_claim_group.rb
# frozen_string_literal: true class AddForeignKeyToSavedClaimGroup < ActiveRecord::Migration[7.2] disable_ddl_transaction! def down remove_foreign_key :saved_claim_group, :saved_claims, column: :parent_claim_id, if_exists: true, validate: false remove_foreign_key :saved_claim_group, :saved_claims, column:...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20220627202719_add_cid_to_claims_api_auto_established_claims.rb
class AddCidToClaimsApiAutoEstablishedClaims < ActiveRecord::Migration[6.1] def change add_column :claims_api_auto_established_claims, :cid, :string end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240425231821_add_vyependingdocuments.vye.rb
class AddVyependingdocuments < ActiveRecord::Migration[7.1] def change add_column :vye_pending_documents, :encrypted_kms_key, :text, if_not_exists: true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250429014133_create_sign_in_config_certificates.rb
class CreateSignInConfigCertificates < ActiveRecord::Migration[7.2] def change create_table :sign_in_config_certificates do |t| t.belongs_to :config, polymorphic: true, null: false, type: :integer, index: true t.belongs_to :certificate, null: false, type: :uuid, index: true t.timestamps end ...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20211028210712_add_index_to_vba_documents_upload_submissions.rb
class AddIndexToVBADocumentsUploadSubmissions < ActiveRecord::Migration[6.1] disable_ddl_transaction! def change add_index :vba_documents_upload_submissions, :s3_deleted, algorithm: :concurrently add_index :vba_documents_upload_submissions, :created_at, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241023222045_create_banners.rb
class CreateBanners < ActiveRecord::Migration[7.1] def change create_table :banners do |t| t.integer :entity_id, null: false t.string :entity_bundle t.string :headline t.string :alert_type t.boolean :show_close t.text :content t.jsonb :context t.boolean :operating_s...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20231215141616_create_vye_direct_deposit_changes.vye.rb
# frozen_string_literal: true # This migration comes from vye (originally 20231120035221) class CreateVyeDirectDepositChanges < ActiveRecord::Migration[6.1] def change create_table :vye_direct_deposit_changes do |t| t.integer :user_info_id t.string :rpo t.string :ben_type t.text :full_nam...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20221122004008_add_user_account_to_health_quest_questionnaire_responses.rb
class AddUserAccountToHealthQuestQuestionnaireResponses < ActiveRecord::Migration[6.1] def change safety_assured do add_reference :health_quest_questionnaire_responses, :user_account, type: :uuid, foreign_key: true, null: true, index: true end end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241212101623_add_claim_va_notifications_reference_columns.rb
class AddClaimVANotificationsReferenceColumns < ActiveRecord::Migration[7.1] def change safety_assured do add_column :claim_va_notifications, :notification_id, :uuid add_column :claim_va_notifications, :notification_type, :string add_column :claim_va_notifications, :notification_status, :string ...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20251129164020_add_new_id_to_digital_dispute_submissions.rb
# frozen_string_literal: true class AddNewIdToDigitalDisputeSubmissions < ActiveRecord::Migration[7.2] def up add_column :digital_dispute_submissions, :new_id, :bigint safety_assured do execute <<-SQL.squish CREATE SEQUENCE digital_dispute_submissions_new_id_seq; SQL end end def...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20230512221325_add_pkce_to_client_configs.rb
class AddPkceToClientConfigs < ActiveRecord::Migration[6.1] def change add_column :client_configs, :pkce, :boolean end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250523205632_add_unique_index_to_invalid_letter_address_edipis_edipi.rb
class AddUniqueIndexToInvalidLetterAddressEdipisEdipi < ActiveRecord::Migration[7.2] disable_ddl_transaction! def change remove_index :invalid_letter_address_edipis, column: :edipi, algorithm: :concurrently add_index :invalid_letter_address_edipis, :edipi, unique: true, name: "index_invalid_letter_address_...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240716143103_index_created_at_in_verifications.vye.rb
# This migration comes from vye (originally 20240715000016) class IndexCreatedAtInVerifications < ActiveRecord::Migration[7.1] disable_ddl_transaction! def change add_index :vye_verifications, :created_at, algorithm: :concurrently, if_not_exists: true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210722175727_create_webhook_tables.rb
class CreateWebhookTables < ActiveRecord::Migration[6.1] def change create_table :webhooks_subscriptions do |t| t.string :api_name, null: false t.string :consumer_name, null: false t.uuid :consumer_id, null: false t.uuid :api_guid, null: true, default: nil t.jsonb :events, default: {...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241112161300_remove_itf_datetime_from_saved_claims.rb
class RemoveItfDatetimeFromSavedClaims < ActiveRecord::Migration[7.1] def change safety_assured { remove_column :saved_claims, :itf_datetime, :datetime, if_exists: true } end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241029143650_add_failure_notification_sent_at_to_secondary_appeal_form.rb
class AddFailureNotificationSentAtToSecondaryAppealForm < ActiveRecord::Migration[7.1] def change add_column :secondary_appeal_forms, :failure_notification_sent_at, :datetime end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20230803151452_add_description_to_client_configs.rb
class AddDescriptionToClientConfigs < ActiveRecord::Migration[6.1] def change add_column :client_configs, :description, :text safety_assured { remove_column :client_configs, :refresh_token_path, :string } end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210324135731_add_column_row_id_to_va_forms_forms.rb
class AddColumnRowIdToVAFormsForms < ActiveRecord::Migration[6.0] def change add_column :va_forms_forms, :row_id, :integer end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20231124170404_add_access_token_attributes_to_service_account_configs.rb
class AddAccessTokenAttributesToServiceAccountConfigs < ActiveRecord::Migration[6.1] def change add_column :service_account_configs, :access_token_user_attributes, :string, array: true, default: [] end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250919164027_allow_null_metadata_for_record_metadata.rb
# frozen_string_literal: true class AllowNullMetadataForRecordMetadata < ActiveRecord::Migration[7.2] def change change_column_null :claims_api_record_metadata, :metadata_ciphertext, true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250328144710_add_header_hash_to_claims_api_power_of_attorney.rb
class AddHeaderHashToClaimsApiPowerOfAttorney < ActiveRecord::Migration[7.2] def change add_column :claims_api_power_of_attorneys, :header_hash, :string end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210526185923_create_active_storage_variant_records.active_storage.rb
# This migration comes from active_storage (originally 20191206030411) class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0] def change create_table :active_storage_variant_records do |t| t.belongs_to :blob, null: false, index: false t.string :variation_digest, null: false t.in...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240501000631_create_decision_review_evidence_attachment_validation.rb
class CreateDecisionReviewEvidenceAttachmentValidation < ActiveRecord::Migration[7.1] def change create_table :decision_review_evidence_attachment_validations do |t| t.uuid :decision_review_evidence_attachment_guid, null: false t.text :password_ciphertext t.text :encrypted_kms_key t.times...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240425231317_add_address_details_from_vye_user_infos.vye.rb
class AddAddressDetailsFromVyeUserInfos < ActiveRecord::Migration[7.1] def change add_column :vye_user_infos, :full_name_ciphertext, :text, if_not_exists: true add_column :vye_user_infos, :address_line2_ciphertext, :text, if_not_exists: true add_column :vye_user_infos, :address_line3_ciphertext, :text, if...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20241016170907_add_index_to_appeal_submissions.rb
class AddIndexToAppealSubmissions < ActiveRecord::Migration[7.1] disable_ddl_transaction! def change add_index :appeal_submissions, :submitted_appeal_uuid, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250919163720_remove_record_id_from_record_metadata.rb
# frozen_string_literal: true class RemoveRecordIdFromRecordMetadata < ActiveRecord::Migration[7.2] def change safety_assured { remove_column :claims_api_record_metadata, :record_id, :uuid } end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240411161733_create_accredited_individuals_accredited_organizations.rb
# frozen_string_literal: true class CreateAccreditedIndividualsAccreditedOrganizations < ActiveRecord::Migration[7.1] def change create_table :accredited_individuals_accredited_organizations do |t| t.references :accredited_individual, type: :uuid, foreign_key: true, null: false t.references :accredit...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240821145040_add_benefits_intake_uuid_to_form_submission_attempts.rb
class AddBenefitsIntakeUuidToFormSubmissionAttempts < ActiveRecord::Migration[7.1] def change add_column :form_submission_attempts, :benefits_intake_uuid, :uuid end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210505180038_add_vrrap_to_edu_submissions.rb
class AddVrrapToEduSubmissions < ActiveRecord::Migration[6.0] def change add_column(:education_benefits_submissions, :vrrap, :boolean, default: false, null: false) end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250418170149_add_declination_reason_to_ar_power_of_attorney_request_resolutions.rb
class AddDeclinationReasonToArPowerOfAttorneyRequestResolutions < ActiveRecord::Migration[7.2] def change add_column :ar_power_of_attorney_request_resolutions, :declination_reason, :integer end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20210211192624_create_active_storage_tables.active_storage.rb
class CreateActiveStorageTables < ActiveRecord::Migration[5.2] def change create_table :active_storage_blobs do |t| t.string :key, null: false t.string :filename, null: false t.string :content_type t.text :metadata t.bigint :byte_size, null: false t.string...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240502175751_attempt_may2_add_bdn_clone_active_index_to_user_infos.vye.rb
# This migration comes from vye (originally 20240502000010) class AttemptMay2AddBdnCloneActiveIndexToUserInfos < ActiveRecord::Migration[7.1] disable_ddl_transaction! def change add_index :vye_user_infos, :bdn_clone_active, algorithm: :concurrently end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250409194833_add_kms_encryption_key_to_submission_tables.rb
class AddKmsEncryptionKeyToSubmissionTables < ActiveRecord::Migration[7.2] def change add_column :bpds_submissions, :encrypted_kms_key, :text, comment: 'KMS key used to encrypt the reference data' add_column :bpds_submission_attempts, :encrypted_kms_key, :text, comment: 'KMS key used to encrypt sensitive data...
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20240716143104_index_created_at_in_direct_deposits.vye.rb
# This migration comes from vye (originally 20240715000017) class IndexCreatedAtInDirectDeposits < ActiveRecord::Migration[7.1] disable_ddl_transaction! def change add_index :vye_direct_deposit_changes, :created_at, algorithm: :concurrently, if_not_exists: true end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20231103213717_add_itf_date_to_saved_claims.rb
class AddItfDateToSavedClaims < ActiveRecord::Migration[6.1] def change add_column :saved_claims, :itf_datetime, :datetime end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250530183256_add_doctype_to_persistent_attachments.rb
class AddDoctypeToPersistentAttachments < ActiveRecord::Migration[7.2] def change add_column :persistent_attachments, :doctype, :integer end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20250116192421_add_can_accept_digital_poa_requests_to_veteran_organizations.rb
class AddCanAcceptDigitalPoaRequestsToVeteranOrganizations < ActiveRecord::Migration[7.2] def change add_column :veteran_organizations, :can_accept_digital_poa_requests, :boolean, default: false end end
0
code_files/vets-api-private/db
code_files/vets-api-private/db/migrate/20231215141613_create_vye_awards.vye.rb
# frozen_string_literal: true # This migration comes from vye (originally 20231120034755) class CreateVyeAwards < ActiveRecord::Migration[6.1] def change create_table :vye_awards do |t| t.integer :user_info_id t.string :cur_award_ind t.datetime :award_begin_date t.datetime :award_end_date...