Created
October 29, 2017 19:13
-
-
Save rawaby88/2ef9717a265a147463ce2e6a75afbde3 to your computer and use it in GitHub Desktop.
forien key #migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$table->string('appointment_id'); | |
$table->foreign('appointment_id')->references('appointment_id')->on('appointments')->onDelete('cascade'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment