useless commit

This commit is contained in:
Timothy N. Tsvetkov 2011-04-11 21:05:40 +04:00
parent 9a4b3ef92a
commit 56b17dd430
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
class Product < ActiveRecord::Base
NEVER_BUILT = 2
BUILD_COMPLETED = 0
BUILD_FAILED = 1
validates :name, :presence => true, :uniqueness => true
validates :platform_id, :presence => true
validates :build_status, :inclusion => { :in => [ NEVER_BUILT, BUILD_COMPLETED, BUILD_FAILED ] }
belongs_to :platform
NEVER_BUILT = 2
BUILD_COMPLETED = 0
BUILD_FAILED = 1
end