chore: enable freeze string literals by comment
This commit is contained in:
parent
edeb9a46ec
commit
77fb0553fc
2262 changed files with 4520 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddExportQueuedToProcedures < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :procedures, :csv_export_queued, :boolean
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class GestionnaireToInstructeur < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
rename_table :gestionnaires, :instructeurs
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class LinkUserAndInstructeur < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_reference :users, :instructeur, index: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class LinkUserAndAdministrateur < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_reference :users, :administrateur, index: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateGroupeInstructeurs < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :groupe_instructeurs do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddGroupeInstructeurColumnToAssignTos < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_reference :assign_tos, :groupe_instructeur, foreign_key: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddGroupeInstructeurIdColumnToDossier < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_reference :dossiers, :groupe_instructeur, foreign_key: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class DropFlipflopFeatures < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :administrateurs, :features
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveCarrierwaveColumns < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_columns :procedures, :logo, :logo_secure_token
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveDeviseColumns < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_columns :administrateurs,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveUnusedColumns < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :dossiers, :json_latlngs
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class MakePathNonnull < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column_null :procedures, :path, false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexesToDossier < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :dossiers, :state
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddRoutingCriteriaNameColumnToProcedure < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :procedures, :routing_criteria_name, :text
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDefaultValueToRoutingCriteriaName < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column :procedures, :routing_criteria_name, :text, default: "Votre ville"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveUniqueConstraintOnInstructeurEmails < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
# Drop the index entirely
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class InstructeursRemoveEmail < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :instructeurs, :email
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddClosedAtToProcedures < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :procedures, :closed_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddUnpublishedAtToProcedures < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :procedures, :unpublished_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddNearDeletionNoticeSendToDossier < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :dossiers, :brouillon_close_to_expiration_notice_sent_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveAdministrationIdFromDossierOperationLogs < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :dossier_operation_logs, :administration_id, :bigint
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateExports < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :exports do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateExportGroupeInstructeurJoinTable < ActiveRecord::Migration[5.2]
|
||||
create_table "exports_groupe_instructeurs", force: :cascade do |t|
|
||||
t.bigint "export_id", null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddEnConstructionCloseToExpirationToDossiers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :dossiers, :en_construction_close_to_expiration_notice_sent_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddProceduresPathClosedAtHiddenAtIndex < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :procedures, [:path, :closed_at, :hidden_at], unique: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddCanonicalProcedureIdToProcedures < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :procedures, :canonical_procedure_id, :bigint
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveUniqueConstraintOnAdministrateurEmails < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
# Drop the index entirely
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddWeeklyEmailNotificationsToAssignTos < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :assign_tos, :weekly_email_notifications_enabled, :boolean, default: true, null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AdministrateursRemoveEmail < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :administrateurs, :email
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDailyEmailNotificationsEnabledToAssignTos < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :assign_tos, :daily_email_notifications_enabled, :boolean, default: false, null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddGroupeInstructeurUpdatedAtToDossiers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :dossiers, :groupe_instructeur_updated_at, :timestamp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveEmailNotificationsEnabledFromAssignTos < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :assign_tos, :email_notifications_enabled
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDiffusableCommercialementToEtablissements < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :etablissements, :diffusable_commercialement, :boolean
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddEnConstructionConservationExtensionToDossiers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :dossiers, :en_construction_conservation_extension, :interval
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddReasonToDeletedDossiers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :deleted_dossiers, :reason, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDefaultToEnConstructionConservationExtension < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column :dossiers, :en_construction_conservation_extension, :interval, default: 0.days
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddTermineCloseToExpirationToDossiers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :dossiers, :termine_close_to_expiration_notice_sent_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddInstantEmailMessageNotificationsToAssignTos < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :assign_tos, :instant_email_message_notifications_enabled, :boolean, default: false, null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddEffectifsMensuelsToEtablissements < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :etablissements, :effectif_mois, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddInstantEmailDossierNotificationsToAssignTos < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :assign_tos, :instant_email_dossier_notifications_enabled, :boolean, default: false, null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RenameEffectifMensuel < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
rename_column :etablissements, :effectif_mensuel, :entreprise_effectif_mensuel
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddEffectifAnneeAnterieure < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :etablissements, :entreprise_effectif_annuel, :decimal
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddAPIEntrepriseTokenToProcedures < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :procedures, :api_entreprise_token, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddBilansBdfToEtablissements < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :etablissements, :entreprise_bilans_bdf, :jsonb
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveDossierProcedureId < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :dossiers, :procedure_id
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateTraitements < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :traitements do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveInstructeurIdAndAddInstructeurEmailToTraitements < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :traitements, :instructeur_email, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateProcedureRevisions < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :procedure_revisions do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateProcedureRevisionTypesDeChamp < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :procedure_revision_types_de_champ do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddRevokedAtToAvis < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :avis, :revoked_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDossiersLatestUpdatesToDossiers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :dossiers, :last_champ_updated_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddEnseigneToEtablissements < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :etablissements, :enseigne, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveTypeDeChampProcedureId < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :types_de_champ, :procedure_id
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddAllowInstructorInviteExpert < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :procedures, :allow_expert_review, :boolean, default: true, null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateStats < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :stats do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDeviseTwoFactorToAdministrations < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :administrations, :encrypted_otp_secret, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateArchiveForGroupeInstructeur < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :archives do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RenameAdministrationsToSuperAdmins < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_table :administrations, :super_admins
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddRelationsToDeletedDossiers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :deleted_dossiers, :user_id, :bigint
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveDossierOperationLogForeignKey < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_foreign_key :dossier_operation_logs, :dossiers
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateExperts < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :experts do |t| # rubocop:disable Style/SymbolProc
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class LinkUserAndExpert < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_reference :users, :expert, index: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateExpertsProcedures < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :experts_procedures do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddExpertsProcedureToAvis < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_reference :avis, :experts_procedure, foreign_key: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDataToChamps < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :champs, :data, :jsonb
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddExternalIdToChamps < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :champs, :external_id, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddPublishedAtToProcedureRevisions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :procedure_revisions, :published_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddUniqueIndexToExpertsProcedures < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_index :experts_procedures, [:expert_id, :procedure_id], unique: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddJobExceptionLogs < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :dossiers, :api_entreprise_job_exceptions, :string, array: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddClaimantTypeToAvis < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :avis, :claimant_type, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddTmpExpertMigratedToAvis < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :avis, :tmp_expert_migrated, :boolean, default: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddEncryptedAPIParticulierTokenToProcedures < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :procedures, :encrypted_api_particulier_token, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# This migration comes from active_storage (originally 20190112182829)
|
||||
class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0]
|
||||
disable_ddl_transaction!
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# This migration comes from active_storage (originally 20191206030411)
|
||||
# rubocop:disable Rails/CreateTableWithTimestamps
|
||||
class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddNotNullServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
unless column_exists?(:active_storage_blobs, :service_name, null: false)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddCacheKeyToExports < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :exports, :key, :text
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddRevokedAtToExpertsProcedures < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :experts_procedures, :revoked_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ExportsKeyNotNull < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
change_column_null :exports, :key, false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class DropUnusedColumns < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
remove_column :avis, :instructeur_id
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveProcedureIdFromAssignTos < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
remove_column :assign_tos, :procedure_id, :number
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddBypassEmailLoginTokenColumnToInstructeur < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
# This may take a while if running on Postgres < 11
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDataColumnToFranceConnectInformations < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :france_connect_informations, :data, :jsonb
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddExpertsRequireAdministrateurInvitationToProcedures < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :procedures, :experts_require_administrateur_invitation, :boolean, default: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexToExerciceEtablissementId < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_index :exercices, :etablissement_id
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDeletedUserEmailNeverSendToDossiers < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :dossiers, :deleted_user_email_never_send, :string
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddExpertIdToCommentaires < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_belongs_to :commentaires, :expert, type: :bigint, foreign_key: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RenameContentTypeToToTimeSpanTypeForArchives < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
rename_column :archives, :content_type, :time_span_type
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddUniqueIndexToInvites < ActiveRecord::Migration[6.1]
|
||||
include Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddUniqueIndexToProcedures < ActiveRecord::Migration[6.1]
|
||||
include Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddUniqueIndexToIndividuals < ActiveRecord::Migration[6.1]
|
||||
include Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddKeyToArchives < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :archives, :key, :text, null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddConservationExtensionToDossiers < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :dossiers, :conservation_extension, :interval
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddConstraintsToFranceConnectInformations < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
change_column_null :france_connect_informations, :user_id, false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDefaultToConservationExtension < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
change_column_default :dossiers, :conservation_extension, 0.days
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddTimeSpanTypeToExports < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :exports, :time_span_type, :string, default: 'everything', null: false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddDeclarativeTriggeredAtToDossiers < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :dossiers, :declarative_triggered_at, :datetime
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddParentIdToProcedureRevisionTypeDeChamp < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_belongs_to :procedure_revision_types_de_champ, :parent, index: true, foreign_key: { to_table: :procedure_revision_types_de_champ }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateDossierTransfers < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :dossier_transfers do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateDossierTransferLogs < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :dossier_transfer_logs do |t|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateBulkMessageMails < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :bulk_messages do |t|
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue