| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | Schema::create('announcements', function (Blueprint $table) { |
||
| 18 | $table->id(); |
||
| 19 | $table->foreignId('user_id')->constrained()->cascadeOnDelete(); |
||
| 20 | $table->json('medium')->nullable(); |
||
| 21 | $table->json('audience'); |
||
| 22 | $table->boolean('slack_notify')->default(1); |
||
| 23 | $table->text('body'); |
||
| 24 | $table->timestamps(); |
||
| 25 | }); |
||
| 26 | |||
| 27 | Artisan::call('make:permission Announcement --all'); |
||
| 28 | } |
||
| 40 |