demarches-normaliennes/db/migrate/20170524140630_create_attestation_templates.rb

17 lines
371 B
Ruby
Raw Normal View History

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