procedure: remove expects_multiple_submissions
column
This commit is contained in:
parent
6263a786d2
commit
a047ee356b
2 changed files with 6 additions and 1 deletions
|
@ -3,7 +3,7 @@ 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, :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_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
|
||||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue