diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrations/2019_11_25_000000_create_messages_table.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrations/2019_11_25_000000_create_messages_table.php b/db/migrations/2019_11_25_000000_create_messages_table.php index b34a6c19..e2c0f253 100644 --- a/db/migrations/2019_11_25_000000_create_messages_table.php +++ b/db/migrations/2019_11_25_000000_create_messages_table.php @@ -75,7 +75,7 @@ class CreateMessagesTable extends Migration 'messages', function (Blueprint $table) { $table->increments('id'); - $this->references($table, 'users', 'user_id'); + $this->referencesUser($table); $this->references($table, 'users', 'receiver_id'); $table->boolean('read')->default(0); $table->text('text'); |