nl: for every sql in return value of the function connection.creation.sql_for_pending_references called with arguments: model, style,
code: alter_sql . extend ( [ '-- ' + sql for sql in connection . creation . sql_for_pending_references ( model , style , pending_references ) ] )