demarches-normaliennes/db/migrate/20160830142653_create_mail_templates_table.rb

12 lines
239 B
Ruby
Raw Normal View History

class CreateMailTemplatesTable < ActiveRecord::Migration
def change
create_table :mail_templates do |t|
t.string :object
t.text :body
t.string :type
end
add_belongs_to :mail_templates, :procedure
end
end