Adds index to element_id in traits table
Adds guard-migrate