fix yo communication channel deletion migration

Change-Id: Icf20cb7ad8767d0b819f481d0e5e52dc8a8e3d74
Reviewed-on: https://gerrit.instructure.com/147789
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
This commit is contained in:
James Williams 2018-04-23 11:15:13 -06:00
parent 4b3fb3aff9
commit ccf56d7a48
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class DeleteYoCommunicationChannels < ActiveRecord::Migration[5.1]
tag :postdeploy
def up
NotificationPolicy.where(:communication_channel_id => CommunicationChannel.where(path_type: 'yo').select(:id)).delete_all
CommunicationChannel.where(path_type: 'yo').delete_all
end
end