Wow - that is amazing!!! It works a treat. Thank you.
later…
I’ve got a follow-on issue which I need a wee bit of help with sorry!
Several of my groups still display the /g/group-slug/messages despite not having any.
On closer inspection, they have had messages in the past, which have been converted to Topics or deleted. Data Explorer reveals that these groups have True in has_messages in the Groups table.
I’ve tried changing it for these groups via Rails but I can’t seem to achieve it:
[2] pry(main)> Group.find_by_name(“group-slug”).has_messages
=> true
[3] pry(main)> Group.find_by_name(“group-slug”).has_messages = false
=> false
[4] pry(main)> Group.find_by_name(“group-slug”).has_messages
=> true
Any suggestions short of deleting the groups and remaking them (which I’m not super keen to do)?
