Added initial mail template editor #2369

This commit is contained in:
Priit Tark 2015-08-25 21:11:36 +03:00
parent 5ba39fb406
commit 032cff3cf3
16 changed files with 298 additions and 1 deletions

View file

@ -0,0 +1,19 @@
class CreateEmailTemplates < ActiveRecord::Migration
def self.up
create_table :mail_templates do |t|
t.string :name, null: false
t.string :subject
t.string :from
t.string :bcc
t.string :cc
t.text :body, null: false
t.text :text_body, null: false
t.timestamps
end
end
def self.down
drop_table :mail_templates
end
end