Merge pull request #1960 from betagouv/frederic/fix-1946/add-dossier-retention-time

[#1946] Add data retention times to Procedure
This commit is contained in:
Frederic Merizen 2018-05-24 13:54:41 +02:00 committed by GitHub
commit 4cb9fe05e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,6 @@
class AddRetentionTimesToProcedure < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :duree_conservation_dossiers_dans_ds, :integer
add_column :procedures, :duree_conservation_dossiers_hors_ds, :integer
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_05_16_155238) do
ActiveRecord::Schema.define(version: 2018_05_22_142109) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -469,6 +469,8 @@ ActiveRecord::Schema.define(version: 2018_05_16_155238) do
t.datetime "test_started_at"
t.string "aasm_state", default: "brouillon"
t.bigint "service_id"
t.integer "duree_conservation_dossiers_dans_ds"
t.integer "duree_conservation_dossiers_hors_ds"
t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
t.index ["parent_procedure_id"], name: "index_procedures_on_parent_procedure_id"
t.index ["service_id"], name: "index_procedures_on_service_id"