mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Added initial mail template editor #2369
This commit is contained in:
parent
5ba39fb406
commit
032cff3cf3
16 changed files with 298 additions and 1 deletions
19
db/migrate/20150825125118_create_email_templates.rb
Normal file
19
db/migrate/20150825125118_create_email_templates.rb
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue