Skip to content

Commit

Permalink
Fixes #440 - removed unique constraint on serial
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 17, 2015
1 parent b32d74d commit ea6a6d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ class Asset extends Elegant
'notes' => 'alpha_space',
'pysical' => 'integer',
'supplier_id' => 'integer',
//'asset_tag' => 'required|alpha_space|min:3|max:255|unique:assets,asset_tag,{id},deleted_at,NULL',
//'email' => 'required|email|unique:users,email,NULL,id,deleted_at,NULL',
//'asset_tag' => 'required|alpha_space|min:2|max:255|unique:assets,asset_tag,deleted_at,NULL',
'asset_tag' => 'required|alpha_space|min:3|max:255|unique:assets,asset_tag,{id}',
'serial' => 'required|alpha_dash|min:3|max:255|unique:assets,serial,{id}',
//'serial' => 'required|alpha_dash|min:3|max:255|unique:assets,serial,{id}',
'status' => 'integer'
);

Expand Down

0 comments on commit ea6a6d0

Please sign in to comment.