Created
December 9, 2017 07:13
-
-
Save andri-sudarmawijaya/69bb4682f415e9770d1a07e7101a8b80 to your computer and use it in GitHub Desktop.
This file contains 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
public function up() | |
{ | |
Schema::table('todolists', function(Blueprint $table) | |
{ | |
$table->integer('category_id')->unsigned()->after('id'); | |
$table->foreign('category_id')->references('id')->on('categories'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment