diff --git a/db/migrate/20210428104228_add_conservation_extension_to_dossiers.rb b/db/migrate/20210428104228_add_conservation_extension_to_dossiers.rb new file mode 100644 index 000000000..909ac22f0 --- /dev/null +++ b/db/migrate/20210428104228_add_conservation_extension_to_dossiers.rb @@ -0,0 +1,5 @@ +class AddConservationExtensionToDossiers < ActiveRecord::Migration[6.1] + def change + add_column :dossiers, :conservation_extension, :interval, default: 0.days + end +end diff --git a/db/schema.rb b/db/schema.rb index eefe0112f..44108f050 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_04_27_124500) do +ActiveRecord::Schema.define(version: 2021_04_28_104228) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -274,6 +274,7 @@ ActiveRecord::Schema.define(version: 2021_04_27_124500) do t.datetime "last_avis_updated_at" t.datetime "last_commentaire_updated_at" t.string "api_entreprise_job_exceptions", array: true + t.interval "conservation_extension", default: "PT0S" 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.index ["archived"], name: "index_dossiers_on_archived"