Class: Bosh::Director::Models::EphemeralBlob
- Defined in:
- lib/bosh/director/models/ephemeral_blob.rb
Instance Method Summary collapse
Instance Method Details
#before_validation ⇒ Object
3 4 5 |
# File 'lib/bosh/director/models/ephemeral_blob.rb', line 3 def before_validation self.created_at ||= Time.now end |
#validate ⇒ Object
6 7 8 9 |
# File 'lib/bosh/director/models/ephemeral_blob.rb', line 6 def validate validates_presence [:blobstore_id, :sha1, :created_at ] validates_unique [ :blobstore_id ] end |