fixed: valudate :prop_name to validates :prop_name
This commit is contained in:
parent
6b26715e22
commit
2bade85793
|
@ -1,7 +1,7 @@
|
|||
class Container < ActiveRecord::Base
|
||||
validate :name, :presence => true
|
||||
validate :project_id, :presence => true
|
||||
validate :onwer_id, :presence => true
|
||||
validates :name, :presence => true
|
||||
validates :project_id, :presence => true
|
||||
validates :onwer_id, :presence => true
|
||||
|
||||
belongs_to :project
|
||||
belongs_to :owner, :class_name => 'User', :foreign_key => 'owner_id'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class Rpm < ActiveRecord::Base
|
||||
validate :name, :presence => true
|
||||
validate :arch_id, :presence => true
|
||||
validate :project_id, :presence => true
|
||||
validates :name, :presence => true
|
||||
validates :arch_id, :presence => true
|
||||
validates :project_id, :presence => true
|
||||
|
||||
belongs_to :arch
|
||||
belongs_to :project
|
||||
|
|
Loading…
Reference in New Issue