Add migration script

This commit is contained in:
Milan Cvetkovic 2023-08-16 12:04:32 +00:00 committed by Tom Hughes
parent b3e13eb752
commit ef6803416b
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,9 @@
class UseMicrosoftGraph < ActiveRecord::Migration[7.0]
def self.up
User.where(:auth_provider => 'windowslive').update_all(:auth_provider => 'microsoft_graph')
end
def self.down
User.where(:auth_provider => 'microsoft_graph').update_all(:auth_provider => 'windowslive')
end
end

View file

@ -3395,6 +3395,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20211216185316'),
('20220201183346'),
('20220223140543'),
('20230816135800'),
('21'),
('22'),
('23'),