CreatePointTransactionsTable::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreatePointTransactionsTable extends Migration
7
{
8
    public function up()
9
    {
10
        Schema::create('point_transactions', function (Blueprint $table) {
11
            $table->increments('id');
12
            $table->text('message');
13
            $table->morphs('pointable');
14
            $table->double('amount');
15
            $table->double('current');
16
            $table->timestamps();
17
        });
18
    }
19
20
    public function down()
21
    {
22
        Schema::dropIfExists('point_transactions');
23
    }
24
}
25