Feature: API Channel (#1052)

This commit is contained in:
Sojan Jose
2020-07-21 12:15:24 +05:30
committed by GitHub
parent fa04098c20
commit 8079bf50a0
40 changed files with 735 additions and 246 deletions

View File

@@ -0,0 +1,9 @@
class CreateApiChannel < ActiveRecord::Migration[6.0]
def change
create_table :channel_api do |t|
t.integer :account_id, null: false
t.string :webhook_url, null: false
t.timestamps
end
end
end

View File

@@ -0,0 +1,10 @@
class CreateEmailChannel < ActiveRecord::Migration[6.0]
def change
create_table :channel_email do |t|
t.integer :account_id, null: false
t.string :email, null: false, index: { unique: true }
t.string :forward_to_address, null: false, index: { unique: true }
t.timestamps
end
end
end