[Fix #196] Dossier: add Attestation

This commit is contained in:
Simon Lehericey 2017-06-02 14:30:26 +02:00
parent c0facbf679
commit b443b5cefd
5 changed files with 48 additions and 1 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: 20170524140630) do
ActiveRecord::Schema.define(version: 20170601123221) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -84,6 +84,15 @@ ActiveRecord::Schema.define(version: 20170524140630) do
t.index ["procedure_id"], name: "index_attestation_templates_on_procedure_id", unique: true, using: :btree
end
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.index ["dossier_id"], name: "index_attestations_on_dossier_id", using: :btree
end
create_table "avis", force: :cascade do |t|
t.string "email"
t.text "introduction"
@ -463,6 +472,7 @@ ActiveRecord::Schema.define(version: 20170524140630) do
end
add_foreign_key "attestation_templates", "procedures"
add_foreign_key "attestations", "dossiers"
add_foreign_key "avis", "gestionnaires", column: "claimant_id"
add_foreign_key "cerfas", "dossiers"
add_foreign_key "closed_mails", "procedures"