ActiveRecord like queries and associations for static app constants