diff --git a/db/migrate/20191128081324_add_near_deletion_notice_send_to_dossier.rb b/db/migrate/20191128081324_add_near_deletion_notice_send_to_dossier.rb new file mode 100644 index 000000000..45c159631 --- /dev/null +++ b/db/migrate/20191128081324_add_near_deletion_notice_send_to_dossier.rb @@ -0,0 +1,5 @@ +class AddNearDeletionNoticeSendToDossier < ActiveRecord::Migration[5.2] + def change + add_column :dossiers, :brouillon_close_to_expiration_notice_sent_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 009fa088b..cb42fecf4 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: 2019_11_14_113700) do +ActiveRecord::Schema.define(version: 2019_11_28_081324) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -252,6 +252,7 @@ ActiveRecord::Schema.define(version: 2019_11_14_113700) do t.text "search_terms" t.text "private_search_terms" t.bigint "groupe_instructeur_id" + t.datetime "brouillon_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.index ["archived"], name: "index_dossiers_on_archived"