Add migration script
This commit is contained in:
parent
b3e13eb752
commit
ef6803416b
2 changed files with 10 additions and 0 deletions
9
db/migrate/20230816135800_use_microsoft_graph.rb
Normal file
9
db/migrate/20230816135800_use_microsoft_graph.rb
Normal 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
|
|
@ -3395,6 +3395,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
|||
('20211216185316'),
|
||||
('20220201183346'),
|
||||
('20220223140543'),
|
||||
('20230816135800'),
|
||||
('21'),
|
||||
('22'),
|
||||
('23'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue