chore: one off SMS campaign APIs (#2589)

This commit is contained in:
Sojan Jose
2021-07-14 12:24:09 +05:30
committed by GitHub
parent cb44eb2964
commit dfddf9cacc
15 changed files with 337 additions and 23 deletions

View File

@@ -0,0 +1,10 @@
class AddCampaignTypeToCampaigns < ActiveRecord::Migration[6.0]
def change
change_table :campaigns, bulk: true do |t|
t.integer :campaign_type, default: 0, null: false, index: true
t.integer :campaign_status, default: 0, null: false, index: true
t.jsonb :audience, default: []
t.datetime :scheduled_at, index: true
end
end
end