Chatwoot/db/migrate/20200725131651_create_email_templates.rb
2020-08-06 15:21:06 +05:30

13 lines
414 B
Ruby

class CreateEmailTemplates < ActiveRecord::Migration[6.0]
def change
create_table :email_templates do |t|
t.string :name, null: false
t.text :body, null: false
t.integer :account_id, null: true
t.integer :template_type, default: 1
t.integer :locale, default: 0, null: false
t.timestamps
end
add_index :email_templates, [:name, :account_id], unique: true
end
end