[fix #850] Use UUID as a uniq identifier for the attestation

This commit is contained in:
Simon Lehericey 2017-10-18 14:29:12 +02:00
parent c298a048c0
commit ea2827134e
4 changed files with 21 additions and 5 deletions

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170927092716) do
ActiveRecord::Schema.define(version: 20171019085515) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -87,9 +87,10 @@ ActiveRecord::Schema.define(version: 20170927092716) do
create_table "attestations", force: :cascade do |t|
t.string "pdf"
t.string "title"
t.integer "dossier_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "dossier_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "content_secure_token"
t.index ["dossier_id"], name: "index_attestations_on_dossier_id", using: :btree
end