Follow up - a9984adbc5 - Fixes #3215: Channel attribute name does not exist and should be area instead.

This commit is contained in:
MrGeneration 2020-10-28 11:29:45 +01:00 committed by Thorsten Eckel
parent a9984adbc5
commit 8e479ef4ee

View file

@ -7,7 +7,7 @@ class Issue3215RenameExistingOffice365 < ActiveRecord::Migration[5.2]
# migrate existing Channels and ExternalCredential to new name
# rubocop:disable Rails/SkipsModelValidations
Channel.where(area: 'Office365::Account').update_all(name: 'Microsoft365::Account')
Channel.where(area: 'Office365::Account').update_all(area: 'Microsoft365::Account')
ExternalCredential.where(name: 'office365').update_all(name: 'microsoft365')
# rubocop:enable Rails/SkipsModelValidations
end