Skip to content
Snippets Groups Projects
Verified Commit d42df55e authored by Felix Eckhofer's avatar Felix Eckhofer :man_dancing:
Browse files

Add example usage for compare_engelsystem_shifts

parent 893ea9ec
No related branches found
No related tags found
No related merge requests found
Pipeline #36888 skipped
...@@ -107,17 +107,18 @@ By running `bin/rails <command>` you can trigger some helpful actions, such as ...@@ -107,17 +107,18 @@ By running `bin/rails <command>` you can trigger some helpful actions, such as
- Promote user to shiftcoordinator - Promote user to shiftcoordinator
~~~ruby ~~~ruby
u = User.find_by(name:"username_here") User.find_by(name:"username_here").update(shiftcoordinator: true)
u.shiftcoordinator = true
u.save!
~~~ ~~~
- Reset user password - Reset user password
~~~ruby ~~~ruby
pw = SecureRandom.alphanumeric(12) pw = SecureRandom.alphanumeric(12)
u = User.find_by(name:"username_here") User.find_by(name:"username_here").update(password: pw, password_confirmation: pw)
u.update(password: pw, password_confirmation: pw) ~~~
u.save!
- Print differences between local assignments and those in the engelsystem (taking into account assignments in the "variant conferences")
~~~ruby
Conference.find_by(slug:"38c3").compare_engelsystem_shifts([Conference.find_by(slug:"38c3-more"), Conference.find_by(slug: "38c3-orga")])
~~~ ~~~
- Send a test message to Telegram - Send a test message to Telegram
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment