updated migrations for entity relationship activation events. Added trigger for relationship activations and tests