Use 'arel_table' instead of the (apparently-incorrect) 'table'