for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PushNotificationDevices extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('push_notification_devices', function (Blueprint $table) {
$table->increments('id');
$table->string('device_token');
$table->integer('user_id');
$table->text('access_token')->nullable();
$table->unique(array('device_token', 'user_id'));
$table->softDeletes();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('push_notifications_devices');