useless commit
This commit is contained in:
parent
9a4b3ef92a
commit
56b17dd430
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue