[Fix #196] AttestationTemplate: add model
This commit is contained in:
parent
5855c2552a
commit
d7ff3d6139
12 changed files with 201 additions and 1 deletions
17
db/schema.rb
17
db/schema.rb
|
@ -10,7 +10,8 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170530141608) do
|
||||
ActiveRecord::Schema.define(version: 20170524140630) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
@ -70,6 +71,19 @@ ActiveRecord::Schema.define(version: 20170530141608) do
|
|||
t.index ["procedure_id"], name: "index_assign_tos_on_procedure_id", using: :btree
|
||||
end
|
||||
|
||||
create_table "attestation_templates", force: :cascade do |t|
|
||||
t.text "title"
|
||||
t.text "body"
|
||||
t.text "footer"
|
||||
t.string "logo"
|
||||
t.string "signature"
|
||||
t.boolean "activated"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "procedure_id"
|
||||
t.index ["procedure_id"], name: "index_attestation_templates_on_procedure_id", unique: true, using: :btree
|
||||
end
|
||||
|
||||
create_table "avis", force: :cascade do |t|
|
||||
t.string "email"
|
||||
t.text "introduction"
|
||||
|
@ -448,6 +462,7 @@ ActiveRecord::Schema.define(version: 20170530141608) do
|
|||
t.index ["procedure_id"], name: "index_without_continuation_mails_on_procedure_id", using: :btree
|
||||
end
|
||||
|
||||
add_foreign_key "attestation_templates", "procedures"
|
||||
add_foreign_key "avis", "gestionnaires", column: "claimant_id"
|
||||
add_foreign_key "cerfas", "dossiers"
|
||||
add_foreign_key "closed_mails", "procedures"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue