summaryrefslogtreecommitdiff
path: root/app/models/tool.rb
diff options
context:
space:
mode:
authorluu <luuduong@gmail.com>2014-12-06 15:21:37 +0000
committerluu <luuduong@gmail.com>2014-12-06 15:21:37 +0000
commitf60ca93a327d773723f2ac7235331702256da656 (patch)
treeacff2a43acf7cc33baaaa5d2681ed3f7ca921eaf /app/models/tool.rb
parentad658c4c7ba39191ed379ed73aa4a1b5a463be45 (diff)
add validation for asin and valid tool.
Diffstat (limited to 'app/models/tool.rb')
-rw-r--r--app/models/tool.rb1
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