ActiveRecord in-memory querying and associations for constant records and static data