テーマ利用状況の統計

On my forum I created multiple themes (with different colour schemes and features). I liked the customisation :wink:

After a few years, I am now doing a refresh. I want to eliminate the old themes that are poorly utilised and consolidate on just 3 or 4. Is there any easy way of determining which themes are being utilised by my community?

「いいね!」 2

Here’s my best answer before my battery dies:

UserOption.where("theme_ids is not null").pluck(:theme_ids)

Better would be to search for where that array is longer than 0, but I don’t know how to do that. This will get you all of them. You can then do something clever to sort and count.

「いいね!」 3

See also

「いいね!」 4

Brillant. Thank you goes !

:slight_smile:

「いいね!」 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.