Skip to content

Instantly share code, notes, and snippets.

@mfollett
Created January 25, 2012 22:00
Show Gist options
  • Save mfollett/1679067 to your computer and use it in GitHub Desktop.
Save mfollett/1679067 to your computer and use it in GitHub Desktop.
addForeignKeyConstraint(
baseColumnNames: 'column_name,
baseTableSchemaName: 'my_schema',
baseTableName: 'my_table',
constraintName: 'my_constraint_name',
deferrable: 'false',
initiallyDeferred: 'false',
onDelete: 'CASCADE',
onUpdate: 'CASCADE',
referencedTableName: 'referenced_table',
referencedColumnNames: 'my_referenced_column',
referencedTableSchemaName: 'my_schema',
referencesUniqueColumn: 'true',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment