diff --git a/README.md b/README.md index a77ee7d6c55e8496e54a12a613eeb0d9ca1bc063..c97113f17f5c471b0658823b94a9b43af5392550 100644 --- a/README.md +++ b/README.md @@ -107,17 +107,18 @@ By running `bin/rails <command>` you can trigger some helpful actions, such as - Promote user to shiftcoordinator ~~~ruby - u = User.find_by(name:"username_here") - u.shiftcoordinator = true - u.save! + User.find_by(name:"username_here").update(shiftcoordinator: true) ~~~ - Reset user password ~~~ruby pw = SecureRandom.alphanumeric(12) - u = User.find_by(name:"username_here") - u.update(password: pw, password_confirmation: pw) - u.save! + User.find_by(name:"username_here").update(password: pw, password_confirmation: pw) + ~~~ + +- 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