#NEWLINE# def migrate( self ) : #NEWLINE# #INDENT# '\n        Will migrate all Triggers that should have ref_count to have the right ref_count.\n        ' #NEWLINE# trigger_dbs = self . _get_trigger_with_parameters ( ) #NEWLINE# for trigger_db in trigger_dbs : #NEWLINE# #INDENT# trigger_ref = trigger_db . get_reference ( ) . ref #NEWLINE# rules = self . _get_rules_for_trigger ( trigger_ref = trigger_ref ) #NEWLINE# ref_count = len ( rules ) #NEWLINE# print ( ( 'Updating Trigger %s to ref_count %s' % ( rules , ref_count ) ) ) #NEWLINE# self . _update_trigger_ref_count ( trigger_db = trigger_db , ref_count = ref_count )