wip
This commit is contained in:
@@ -8,6 +8,14 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
|
||||
|
||||
class Deployment extends Model
|
||||
{
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'started_at' => 'datetime',
|
||||
'finished_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
public function steps(): HasMany
|
||||
{
|
||||
return $this->hasMany(Step::class);
|
||||
@@ -15,6 +23,6 @@ class Deployment extends Model
|
||||
|
||||
public function deployable(): MorphTo
|
||||
{
|
||||
return $this->morphTo();
|
||||
return $this->morphTo('target');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user