Class: Bosh::Director::Models::PersistentDisk

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

Instance Method Summary collapse

Instance Method Details

#validateObject



8
9
10
11
# File 'lib/bosh/director/models/persistent_disk.rb', line 8

def validate
  validates_presence [:instance_id, :disk_cid]
  validates_unique [:disk_cid]
end