Suppression de colonnes dépréciées sur Procedure (#4093)
Suppression de colonnes dépréciées sur Procedure
This commit is contained in:
commit
ba137279d5
3 changed files with 10 additions and 2 deletions
|
@ -3,8 +3,6 @@ require Rails.root.join('lib', 'percentile')
|
|||
class Procedure < ApplicationRecord
|
||||
MAX_DUREE_CONSERVATION = 36
|
||||
|
||||
self.ignored_columns = [:individual_with_siret, :expects_multiple_submissions]
|
||||
|
||||
has_many :types_de_piece_justificative, -> { ordered }, inverse_of: :procedure, dependent: :destroy
|
||||
has_many :types_de_champ, -> { root.public_only.ordered }, inverse_of: :procedure, dependent: :destroy
|
||||
has_many :types_de_champ_private, -> { root.private_only.ordered }, class_name: 'TypeDeChamp', inverse_of: :procedure, dependent: :destroy
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class RemoveExpectsMultipleSubmissionsFromProcedure < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :procedures, :expects_multiple_submissions, :boolean, default: false, null: false
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RemoveIndividualWithSiretFromProcedure < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_column :procedures, :individual_with_siret, :boolean, default: false
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue