diff --git a/db/migrate/20200319101825_add_en_construction_conservation_extension_to_dossiers.rb b/db/migrate/20200319101825_add_en_construction_conservation_extension_to_dossiers.rb new file mode 100644 index 000000000..a0b9a241e --- /dev/null +++ b/db/migrate/20200319101825_add_en_construction_conservation_extension_to_dossiers.rb @@ -0,0 +1,5 @@ +class AddEnConstructionConservationExtensionToDossiers < ActiveRecord::Migration[5.2] + def change + add_column :dossiers, :en_construction_conservation_extension, :interval, :default => 0.days + end +end diff --git a/db/schema.rb b/db/schema.rb index c6ed4c550..02f9e1b83 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -255,6 +255,7 @@ ActiveRecord::Schema.define(version: 2020_03_19_103836) do t.datetime "en_construction_close_to_expiration_notice_sent_at" t.index "to_tsvector('french'::regconfig, (search_terms || private_search_terms))", name: "index_dossiers_on_search_terms_private_search_terms", using: :gin t.index "to_tsvector('french'::regconfig, search_terms)", name: "index_dossiers_on_search_terms", using: :gin + t.interval "en_construction_conservation_extension", default: "00:00:00" t.index ["archived"], name: "index_dossiers_on_archived" t.index ["groupe_instructeur_id"], name: "index_dossiers_on_groupe_instructeur_id" t.index ["hidden_at"], name: "index_dossiers_on_hidden_at"