canvas-lms/db/migrate/20150514194536_drop_unencry...

12 lines
254 B
Ruby

class DropUnencryptedLinkedInSettings < ActiveRecord::Migration
tag :postdeploy
def up
PluginSetting.where(name: 'linked_in').each do |ps|
ps.settings.delete(:api_key)
ps.settings.delete(:secret_key)
ps.save!
end
end
end