revoke expert avis

This commit is contained in:
Christophe Robillard 2020-07-16 11:14:37 +02:00
parent 4ff8be4b46
commit 3ea34834a7
8 changed files with 95 additions and 6 deletions

View file

@ -0,0 +1,5 @@
class AddRevokedAtToAvis < ActiveRecord::Migration[6.0]
def change
add_column :avis, :revoked_at, :datetime
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: 2020_07_07_082256) do
ActiveRecord::Schema.define(version: 2020_07_15_143010) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -141,6 +141,7 @@ ActiveRecord::Schema.define(version: 2020_07_07_082256) do
t.datetime "updated_at", null: false
t.integer "claimant_id", null: false
t.boolean "confidentiel", default: false, null: false
t.datetime "revoked_at"
t.index ["claimant_id"], name: "index_avis_on_claimant_id"
t.index ["dossier_id"], name: "index_avis_on_dossier_id"
t.index ["instructeur_id"], name: "index_avis_on_instructeur_id"