demarches-normaliennes/db/migrate/20170524140630_create_attestation_templates.rb
2017-06-16 11:35:13 +02:00

16 lines
371 B
Ruby

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