[fix #850] Use UUID as a uniq identifier for the attestation
This commit is contained in:
parent
c298a048c0
commit
ea2827134e
4 changed files with 21 additions and 5 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddContentSecureTokenColumnToAttestation < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :attestations, :content_secure_token, :string
|
||||
end
|
||||
end
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue