]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20230816135800_use_microsoft_graph.rb
e83d3db441ad6706eb9b5b811187c13d02cfa848
[rails.git] / db / migrate / 20230816135800_use_microsoft_graph.rb
1 class UseMicrosoftGraph < ActiveRecord::Migration[7.0]
2   def self.up
3     User.where(:auth_provider => 'windowslive').update_all(:auth_provider => 'microsoft_graph')
4   end
5
6   def self.down
7     User.where(:auth_provider => 'microsoft_graph').update_all(:auth_provider => 'windowslive')
8   end
9 end