Class: Bosh::Director::Models::Lock

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/models/lock.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



3
4
5
6
# File 'lib/bosh/director/models/lock.rb', line 3

def validate
  validates_presence [:name,:expired_at, :uid]
  validates_unique [:name, :uid]
end