Skip to content

Commit

Permalink
Exclamation.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 8, 2014
1 parent fef745d commit 0b51c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Laravel also provides support for adding foreign key constraints to your tables:
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users');

In this example, we are stating that the `user_id` column references the `id` column on the `users` table. Make sure to create the foreign key column first.
In this example, we are stating that the `user_id` column references the `id` column on the `users` table. Make sure to create the foreign key column first!

You may also specify options for the "on delete" and "on update" actions of the constraint:

Expand Down

0 comments on commit 0b51c31

Please sign in to comment.