This restricted_attributes plugin/gem provides the capabilities to restrict attributes(fields) of db table's while add or update a record. It validate your attributes values before your validation stuff.