procedure: remove individual_with_siret column

This commit is contained in:
Pierre de La Morinerie 2019-07-11 15:56:58 +02:00
parent a047ee356b
commit 619f663e1a
2 changed files with 5 additions and 2 deletions

View file

@ -3,8 +3,6 @@ require Rails.root.join('lib', 'percentile')
class Procedure < ApplicationRecord class Procedure < ApplicationRecord
MAX_DUREE_CONSERVATION = 36 MAX_DUREE_CONSERVATION = 36
self.ignored_columns = [:individual_with_siret]
has_many :types_de_piece_justificative, -> { ordered }, inverse_of: :procedure, dependent: :destroy 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, -> { 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 has_many :types_de_champ_private, -> { root.private_only.ordered }, class_name: 'TypeDeChamp', inverse_of: :procedure, dependent: :destroy

View file

@ -0,0 +1,5 @@
class RemoveIndividualWithSiretFromProcedure < ActiveRecord::Migration[5.2]
def change
remove_column :procedures, :individual_with_siret, :boolean, default: false
end
end