Sha256: 8bb57eba996ce2ee45fd271f9aa9371db37f700c652ad02d2b9873cd453006ca
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
class WcoHosting::Environment include Mongoid::Document include Mongoid::Timestamps include Mongoid::Paranoia store_in collection: 'wco_environments' belongs_to :leadset, class_name: 'Wco::Leadset', inverse_of: :environments field :name validates :name, presence: true, uniqueness: true index({ name: -1 }, { unique: true }) has_many :appliances, class_name: 'WcoHosting::Appliance', inverse_of: :environments ## variable @env in execution environments field :env_json, type: Object, default: '{}' def to_s name end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wco_models-3.1.0.151 | app/models/wco_hosting/environment.rb |
wco_models-3.1.0.150 | app/models/wco_hosting/environment.rb |
wco_models-3.1.0.149 | app/models/wco_hosting/environment.rb |