def _get_rules_for_trigger(self, trigger_ref):
        return Rule.get_all(**{'trigger': trigger_ref})
All rules that reference the supplied trigger_ref.
dataset/ETHPy150Open StackStorm/st2/tools/migrate_triggers_to_include_ref_count.py/TriggerMigrator._get_rules_for_trigger