Skip to content

Commit

Permalink
Merge pull request #137 from rap2hpoutre/patch-1
Browse files Browse the repository at this point in the history
Curly bracket is not on a new line
  • Loading branch information
tabacitu authored Feb 21, 2020
2 parents 8b07ce8 + 1c1fe94 commit e18d988
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ class CreatePostTagPivotTable extends Migration {
*/
public function up()
{
Schema::create('post_tag', function(Blueprint $table)
{
Schema::create('post_tag', function(Blueprint $table) {
$table->integer('post_id')->unsigned()->index();
$table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');
$table->integer('tag_id')->unsigned()->index();
Expand Down

0 comments on commit e18d988

Please sign in to comment.