foreignRelationToSql method

String foreignRelationToSql()

Implementation

String foreignRelationToSql() {
  var out = '';

  if (createTable == null) return out;

  if (createTable!.foreignKeys.isEmpty) return out;

  out += '--\n';
  out += '-- ACTION CREATE FOREIGN KEY\n';
  out += '--\n';
  out += createTable!.foreignRelationToPgsql();

  return out;
}