Lookup tables using activerecord and array fields