dynamic attribute columns for activerecord