doc
authorIvan Kohler <ivan@freeside.biz>
Mon, 4 Nov 2013 19:28:16 +0000 (11:28 -0800)
committerIvan Kohler <ivan@freeside.biz>
Mon, 4 Nov 2013 19:28:16 +0000 (11:28 -0800)
DBSchema/ForeignKey.pm

index 282f8a3..c47286c 100644 (file)
@@ -20,7 +20,9 @@ DBIx::DBSchema::ForeignKey - Foreign key objects
   );
 
   $foreign_key = new DBIx::DBSchema::ForeignKey (
-    { 'columns'    => [ 'column_name', 'column2' ],
+    {
+      'constraint' => 'constraint_name',
+      'columns'    => [ 'column_name', 'column2' ],
       'table'      => 'foreign_table',
       'references' => [ 'foreign_column', 'foreign_column2' ],
       'match'      => 'MATCH FULL', # or MATCH SIMPLE