[Fix #196] AttestationTemplate: add model

This commit is contained in:
Simon Lehericey 2017-06-08 14:16:48 +02:00
parent 5855c2552a
commit d7ff3d6139
12 changed files with 201 additions and 1 deletions

View file

@ -0,0 +1,16 @@
class CreateAttestationTemplates < ActiveRecord::Migration[5.0]
def change
create_table :attestation_templates do |t|
t.text :title
t.text :body
t.text :footer
t.string :logo
t.string :signature
t.boolean :activated
t.timestamps
t.references :procedure, index: { unique: true }, foreign_key: true
end
end
end