Feature: API Channel (#1052)
This commit is contained in:
9
db/migrate/20200627115105_create_api_channel.rb
Normal file
9
db/migrate/20200627115105_create_api_channel.rb
Normal 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
|
||||
10
db/migrate/20200715124113_create_email_channel.rb
Normal file
10
db/migrate/20200715124113_create_email_channel.rb
Normal 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
|
||||
Reference in New Issue
Block a user