[Fix #196] AttestationTemplate: add model
This commit is contained in:
parent
5855c2552a
commit
d7ff3d6139
12 changed files with 201 additions and 1 deletions
16
db/migrate/20170524140630_create_attestation_templates.rb
Normal file
16
db/migrate/20170524140630_create_attestation_templates.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue