Skip to content

Commit

Permalink
Merge pull request #29 from michalkozikcombc/master
Browse files Browse the repository at this point in the history
Created foreign key in team_invites
  • Loading branch information
mpociot committed Apr 20, 2016
2 parents a288854 + 2c6d345 commit 5931381
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/database/migrations.stub
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class TeamworkSetupTables extends Migration
$table->string('accept_token');
$table->string('deny_token');
$table->timestamps();
$table->foreign( 'team_id' )
->references( 'id' )
->on( \Config::get( 'teamwork.teams_table' ) )
->onDelete( 'cascade' );
});

Schema::create( \Config::get( 'teamwork.teams_table' ), function ( $table )
Expand Down

0 comments on commit 5931381

Please sign in to comment.