Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('fg_testimonies', function (Blueprint $table) { |
||
17 | $table->string('id', 150)->primary(); |
||
18 | $table->string('ministry_id', 150)->index(); |
||
19 | $table->string('user_id', 150)->index(); |
||
20 | $table->string('title'); |
||
21 | $table->text('testimony'); |
||
22 | $table->string('resource')->nullable(); |
||
23 | $table->boolean('approved')->default(false); |
||
24 | $table->timestamps(); |
||
25 | |||
26 | $table->foreign('ministry_id')->references('id')->on('fg_ministries')->onDelete('cascade'); |
||
27 | $table->foreign('user_id')->references('id')->on('fg_users')->onDelete('cascade'); |
||
28 | }); |
||
29 | } |
||
30 | |||
41 |