11
db/migrate/20220129024443_add_sms_channel.rb
Normal file
11
db/migrate/20220129024443_add_sms_channel.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class AddSmsChannel < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :channel_sms do |t|
|
||||
t.integer :account_id, null: false
|
||||
t.string :phone_number, null: false, index: { unique: true }
|
||||
t.string :provider, default: 'default'
|
||||
t.jsonb :provider_config, default: {}
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/schema.rb
10
db/schema.rb
@@ -228,6 +228,16 @@ ActiveRecord::Schema.define(version: 2022_01_31_081750) do
|
||||
t.index ["line_channel_id"], name: "index_channel_line_on_line_channel_id", unique: true
|
||||
end
|
||||
|
||||
create_table "channel_sms", force: :cascade do |t|
|
||||
t.integer "account_id", null: false
|
||||
t.string "phone_number", null: false
|
||||
t.string "provider", default: "default"
|
||||
t.jsonb "provider_config", default: {}
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["phone_number"], name: "index_channel_sms_on_phone_number", unique: true
|
||||
end
|
||||
|
||||
create_table "channel_telegram", force: :cascade do |t|
|
||||
t.string "bot_name"
|
||||
t.integer "account_id", null: false
|
||||
|
||||
Reference in New Issue
Block a user