chore: Enable email channel (#1851)

This commit is contained in:
Sojan Jose
2021-03-04 13:59:59 +05:30
committed by GitHub
parent 6aed01de0c
commit ca4a766b82
15 changed files with 54 additions and 48 deletions

View File

@@ -0,0 +1,5 @@
class RenameChannelEmailForwardAddress < ActiveRecord::Migration[6.0]
def change
rename_column :channel_email, :forward_to_address, :forward_to_email
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_02_22_131155) do
ActiveRecord::Schema.define(version: 2021_03_03_192243) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@@ -131,11 +131,11 @@ ActiveRecord::Schema.define(version: 2021_02_22_131155) do
create_table "channel_email", force: :cascade do |t|
t.integer "account_id", null: false
t.string "email", null: false
t.string "forward_to_address", null: false
t.string "forward_to_email", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["email"], name: "index_channel_email_on_email", unique: true
t.index ["forward_to_address"], name: "index_channel_email_on_forward_to_address", unique: true
t.index ["forward_to_email"], name: "index_channel_email_on_forward_to_email", unique: true
end
create_table "channel_facebook_pages", id: :serial, force: :cascade do |t|

View File

@@ -13,9 +13,7 @@ unless Rails.env.production?
SuperAdmin.create!(email: 'john@acme.inc', password: '123456')
account = Account.create!(
name: 'Acme Inc',
domain: 'support.chatwoot.com',
support_email: ENV.fetch('MAILER_SENDER_EMAIL', 'accounts@chatwoot.com')
name: 'Acme Inc'
)
user = User.new(name: 'John', email: 'john@acme.inc', password: '123456')