diff options
| author | luu <luuduong@gmail.com> | 2014-12-06 15:21:37 +0000 |
|---|---|---|
| committer | luu <luuduong@gmail.com> | 2014-12-06 15:21:37 +0000 |
| commit | f60ca93a327d773723f2ac7235331702256da656 (patch) | |
| tree | acff2a43acf7cc33baaaa5d2681ed3f7ca921eaf /app | |
| parent | ad658c4c7ba39191ed379ed73aa4a1b5a463be45 (diff) | |
add validation for asin and valid tool.
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/tool.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/tool.rb b/app/models/tool.rb index c675825f..43fd6e5b 100644 --- a/app/models/tool.rb +++ b/app/models/tool.rb @@ -1,3 +1,4 @@ class Tool < ActiveRecord::Base validates :name, presence: true, uniqueness: true + validates :asin, presence: true end
\ No newline at end of file |
