procedure: remove expects_multiple_submissions column

This commit is contained in:
Pierre de La Morinerie 2019-07-11 13:55:36 +00:00
parent 6263a786d2
commit a047ee356b
2 changed files with 6 additions and 1 deletions

View file

@ -3,7 +3,7 @@ require Rails.root.join('lib', 'percentile')
class Procedure < ApplicationRecord
MAX_DUREE_CONSERVATION = 36
self.ignored_columns = [:individual_with_siret, :expects_multiple_submissions]
self.ignored_columns = [:individual_with_siret]
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

View file

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