Sha256: 26d7448d060d25cc792440bc079b0f364aeae195c2683280f06521f85e4d03ab

Contents?: true

Size: 231 Bytes

Versions: 1

Compression:

Stored size: 231 Bytes

Contents

module Ocp::Registry::Models
  class RegistryApplication < Sequel::Model
  	def before_create
  		values[:id] = Ocp::Registry::Common.uuid
  		values[:created_at] = Time.now.utc.to_s
  		values[:state] = 'PENDING'
  	end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ocp_registry-0.0.1.alpha lib/ocp_registry/models/registry_application.rb