Skip to content

Commit

Permalink
Add status_id column
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jul 25, 2017
1 parent 188eb00 commit 7622a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Models/IncidentComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class IncidentComponent extends Model
protected $casts = [
'incident_id' => 'int',
'component_id' => 'int',
'status_id' => 'int',
];

/**
Expand All @@ -41,6 +42,7 @@ class IncidentComponent extends Model
protected $fillable = [
'incident_id',
'component_id',
'status_id',
];

/**
Expand All @@ -51,6 +53,7 @@ class IncidentComponent extends Model
public $rules = [
'incident_id' => 'required|int',
'component_id' => 'required|int',
'status_id' => 'required|int',
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function up()
$table->increments('id');
$table->integer('incident_id')->unsigned()->index();
$table->integer('component_id')->unsigned()->index();
$table->integer('status_id')->unsigned()->index();
$table->timestamps();
});
}
Expand Down

0 comments on commit 7622a8f

Please sign in to comment.