Sha256: c77d0261ff756d10639625134cfa047d07ea87460d052a59b841270067e7727c

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

##
## 2023-11-30 _vp_ For use in hosting!
## 2023-11-30 _vp_ For future use in email!
##
class Wco::Leadset
  include Mongoid::Document
  include Mongoid::Timestamps

  field :name

  field :company_url
  validates :company_url, presence: true, uniqueness: true

  has_many :wco_leads, class_name: 'Ish::UserProfile'

  # field :domains, type: :string, default: 'orbital.city'

  has_many :serverhosts, class_name: 'Wco::Serverhost', inverse_of: :wco_leadset
  def next_serverhost
    serverhosts.first
  end

  has_many :appliances, class_name: 'Wco::Appliance', inverse_of: :wco_leadset

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_models-3.0.0.1 lib/wco/leadset.rb