compileReference static method

String compileReference(
  1. MigrationColumnReference ref
)

Implementation

static String compileReference(MigrationColumnReference ref) {
  var buf =
      StringBuffer('REFERENCES "${ref.foreignTable}"("${ref.foreignKey}")');
  if (ref.behavior != null) buf.write(' ' + ref.behavior!);
  return buf.toString();
}