openaustralia / righttoknow

Theme for, and issues specific to, Right To Know.
https://www.righttoknow.org.au/
MIT License
21 stars 14 forks source link

0.30.0.0 - Rake Tasks #744

Closed benrfairless closed 3 years ago

benrfairless commented 3 years ago

Run bundle exec rake temp:populate_last_event_time after deployment to populate the cached last_event_timeattribute on info_requests, used in the admin interface.

Run bundle exec rake temp:remove_notifications_tester_role to remove the notification tester role from the database. Use of the PRODUCTION_MAILER_RETRIEVER_METHOD config setting is currently not recommended.

Run bundle exec rake temp:set_daily_summary_times to set some default times for users to receive daily summaries of notifications. This won't have any effect on emails for most users until the new notifications system is rolled out.

There are some database structure updates so remember to rake db:migrate