Prevent duplicate allocations for servers
This commit is contained in:
parent
241f7d0125
commit
d86c35d80f
3 changed files with 35 additions and 2 deletions
|
@ -83,7 +83,7 @@ class Server extends Model implements CleansAttributes, ValidableContract
|
|||
'io' => 'numeric|between:10,1000',
|
||||
'cpu' => 'numeric|min:0',
|
||||
'disk' => 'numeric|min:0',
|
||||
'allocation_id' => 'exists:allocations,id',
|
||||
'allocation_id' => 'bail|unique:servers|exists:allocations,id',
|
||||
'nest_id' => 'exists:nests,id',
|
||||
'egg_id' => 'exists:eggs,id',
|
||||
'pack_id' => 'nullable|numeric|min:0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue