Commit 6ec36cc3 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Adicionado tipo ao avaliador

parent 45ed170d
......@@ -13,6 +13,7 @@ class Avaliador extends Model
'parecer',
'AnexoParecer',
'pivot',
'tipo',
];
public function user(){
return $this->belongsTo('App\User');
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterTableAvaliadors extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('avaliadors', function (Blueprint $table) {
$table->string('tipo')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('avaliadors', function (Blueprint $table) {
$table->dropColumn('tipo');
});
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment