cirandas.net

ref: master

db/migrate/20160311184534_create_email_template.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class CreateEmailTemplate < ActiveRecord::Migration
  def change
    create_table :email_templates do |t|
      t.string :name
      t.string :template_type
      t.string :subject
      t.text :body
      t.references :owner, :polymorphic => true
      t.timestamps
    end
  end
end