Added traits for active records