chore: enable freeze string literals by comment

This commit is contained in:
Colin Darie 2024-04-29 00:17:15 +02:00
parent edeb9a46ec
commit 77fb0553fc
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2262 changed files with 4520 additions and 1 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddExportQueuedToProcedures < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :csv_export_queued, :boolean

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class GestionnaireToInstructeur < ActiveRecord::Migration[5.2]
def change
rename_table :gestionnaires, :instructeurs

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class LinkUserAndInstructeur < ActiveRecord::Migration[5.2]
def change
add_reference :users, :instructeur, index: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class LinkUserAndAdministrateur < ActiveRecord::Migration[5.2]
def change
add_reference :users, :administrateur, index: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateGroupeInstructeurs < ActiveRecord::Migration[5.2]
def change
create_table :groupe_instructeurs do |t|

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddGroupeInstructeurIdColumnToDossier < ActiveRecord::Migration[5.2]
def change
add_reference :dossiers, :groupe_instructeur, foreign_key: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class DropFlipflopFeatures < ActiveRecord::Migration[5.2]
def change
remove_column :administrateurs, :features

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveCarrierwaveColumns < ActiveRecord::Migration[5.2]
def change
remove_columns :procedures, :logo, :logo_secure_token

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveDeviseColumns < ActiveRecord::Migration[5.2]
def change
remove_columns :administrateurs,

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveUnusedColumns < ActiveRecord::Migration[5.2]
def change
remove_column :dossiers, :json_latlngs

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class MakePathNonnull < ActiveRecord::Migration[5.2]
def change
change_column_null :procedures, :path, false

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddIndexesToDossier < ActiveRecord::Migration[5.2]
def change
add_index :dossiers, :state

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddRoutingCriteriaNameColumnToProcedure < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :routing_criteria_name, :text

View file

@ -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"

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveUniqueConstraintOnInstructeurEmails < ActiveRecord::Migration[5.2]
def up
# Drop the index entirely

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class InstructeursRemoveEmail < ActiveRecord::Migration[5.2]
def change
remove_column :instructeurs, :email

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddClosedAtToProcedures < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :closed_at, :datetime

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddUnpublishedAtToProcedures < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :unpublished_at, :datetime

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveAdministrationIdFromDossierOperationLogs < ActiveRecord::Migration[5.2]
def change
remove_column :dossier_operation_logs, :administration_id, :bigint

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateExports < ActiveRecord::Migration[5.2]
def change
create_table :exports do |t|

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddCanonicalProcedureIdToProcedures < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :canonical_procedure_id, :bigint

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveUniqueConstraintOnAdministrateurEmails < ActiveRecord::Migration[5.2]
def up
# Drop the index entirely

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AdministrateursRemoveEmail < ActiveRecord::Migration[5.2]
def change
remove_column :administrateurs, :email

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddGroupeInstructeurUpdatedAtToDossiers < ActiveRecord::Migration[5.2]
def change
add_column :dossiers, :groupe_instructeur_updated_at, :timestamp

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveEmailNotificationsEnabledFromAssignTos < ActiveRecord::Migration[5.2]
def change
remove_column :assign_tos, :email_notifications_enabled

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddDiffusableCommercialementToEtablissements < ActiveRecord::Migration[5.2]
def change
add_column :etablissements, :diffusable_commercialement, :boolean

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddEnConstructionConservationExtensionToDossiers < ActiveRecord::Migration[5.2]
def change
add_column :dossiers, :en_construction_conservation_extension, :interval

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddReasonToDeletedDossiers < ActiveRecord::Migration[5.2]
def change
add_column :deleted_dossiers, :reason, :string

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddEffectifsMensuelsToEtablissements < ActiveRecord::Migration[5.2]
def change
add_column :etablissements, :effectif_mois, :string

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RenameEffectifMensuel < ActiveRecord::Migration[5.2]
def change
rename_column :etablissements, :effectif_mensuel, :entreprise_effectif_mensuel

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddEffectifAnneeAnterieure < ActiveRecord::Migration[5.2]
def change
add_column :etablissements, :entreprise_effectif_annuel, :decimal

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddAPIEntrepriseTokenToProcedures < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :api_entreprise_token, :string

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddBilansBdfToEtablissements < ActiveRecord::Migration[5.2]
def change
add_column :etablissements, :entreprise_bilans_bdf, :jsonb

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveDossierProcedureId < ActiveRecord::Migration[5.2]
def change
remove_column :dossiers, :procedure_id

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateTraitements < ActiveRecord::Migration[5.2]
def change
create_table :traitements do |t|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveInstructeurIdAndAddInstructeurEmailToTraitements < ActiveRecord::Migration[5.2]
def change
add_column :traitements, :instructeur_email, :string

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateProcedureRevisions < ActiveRecord::Migration[5.2]
def change
create_table :procedure_revisions do |t|

View file

@ -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|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddRevokedAtToAvis < ActiveRecord::Migration[6.0]
def change
add_column :avis, :revoked_at, :datetime

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddDossiersLatestUpdatesToDossiers < ActiveRecord::Migration[6.0]
def change
add_column :dossiers, :last_champ_updated_at, :datetime

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddEnseigneToEtablissements < ActiveRecord::Migration[6.0]
def change
add_column :etablissements, :enseigne, :string

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveTypeDeChampProcedureId < ActiveRecord::Migration[6.0]
def change
remove_column :types_de_champ, :procedure_id

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateStats < ActiveRecord::Migration[6.0]
def change
create_table :stats do |t|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddDeviseTwoFactorToAdministrations < ActiveRecord::Migration[6.0]
def change
add_column :administrations, :encrypted_otp_secret, :string

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateArchiveForGroupeInstructeur < ActiveRecord::Migration[6.0]
def change
create_table :archives do |t|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RenameAdministrationsToSuperAdmins < ActiveRecord::Migration[6.0]
def change
rename_table :administrations, :super_admins

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddRelationsToDeletedDossiers < ActiveRecord::Migration[6.0]
def change
add_column :deleted_dossiers, :user_id, :bigint

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveDossierOperationLogForeignKey < ActiveRecord::Migration[6.0]
def change
remove_foreign_key :dossier_operation_logs, :dossiers

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class LinkUserAndExpert < ActiveRecord::Migration[6.0]
def change
add_reference :users, :expert, index: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateExpertsProcedures < ActiveRecord::Migration[6.0]
def change
create_table :experts_procedures do |t|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddExpertsProcedureToAvis < ActiveRecord::Migration[6.0]
def change
add_reference :avis, :experts_procedure, foreign_key: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddDataToChamps < ActiveRecord::Migration[6.0]
def change
add_column :champs, :data, :jsonb

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddExternalIdToChamps < ActiveRecord::Migration[6.0]
def change
add_column :champs, :external_id, :string

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddPublishedAtToProcedureRevisions < ActiveRecord::Migration[6.0]
def change
add_column :procedure_revisions, :published_at, :datetime

View file

@ -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

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddClaimantTypeToAvis < ActiveRecord::Migration[6.0]
def change
add_column :avis, :claimant_type, :string

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddEncryptedAPIParticulierTokenToProcedures < ActiveRecord::Migration[6.0]
def change
add_column :procedures, :encrypted_api_particulier_token, :string

View file

@ -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!

View file

@ -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]

View file

@ -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)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddCacheKeyToExports < ActiveRecord::Migration[6.1]
def change
add_column :exports, :key, :text

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddRevokedAtToExpertsProcedures < ActiveRecord::Migration[6.1]
def change
add_column :experts_procedures, :revoked_at, :datetime

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ExportsKeyNotNull < ActiveRecord::Migration[6.1]
def change
change_column_null :exports, :key, false

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class DropUnusedColumns < ActiveRecord::Migration[6.1]
def change
remove_column :avis, :instructeur_id

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveProcedureIdFromAssignTos < ActiveRecord::Migration[6.1]
def change
remove_column :assign_tos, :procedure_id, :number

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddDataColumnToFranceConnectInformations < ActiveRecord::Migration[6.1]
def change
add_column :france_connect_informations, :data, :jsonb

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddIndexToExerciceEtablissementId < ActiveRecord::Migration[6.1]
def change
add_index :exercices, :etablissement_id

View file

@ -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

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RenameContentTypeToToTimeSpanTypeForArchives < ActiveRecord::Migration[6.1]
def change
rename_column :archives, :content_type, :time_span_type

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddUniqueIndexToInvites < ActiveRecord::Migration[6.1]
include Database::MigrationHelpers

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddUniqueIndexToProcedures < ActiveRecord::Migration[6.1]
include Database::MigrationHelpers

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddUniqueIndexToIndividuals < ActiveRecord::Migration[6.1]
include Database::MigrationHelpers

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddKeyToArchives < ActiveRecord::Migration[6.1]
def change
add_column :archives, :key, :text, null: false

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddConservationExtensionToDossiers < ActiveRecord::Migration[6.1]
def change
add_column :dossiers, :conservation_extension, :interval

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddDefaultToConservationExtension < ActiveRecord::Migration[6.1]
def change
change_column_default :dossiers, :conservation_extension, 0.days

View file

@ -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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddDeclarativeTriggeredAtToDossiers < ActiveRecord::Migration[6.1]
def change
add_column :dossiers, :declarative_triggered_at, :datetime

View file

@ -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 }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateDossierTransfers < ActiveRecord::Migration[6.1]
def change
create_table :dossier_transfers do |t|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateDossierTransferLogs < ActiveRecord::Migration[6.1]
def change
create_table :dossier_transfer_logs do |t|

View file

@ -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