Sha256: c39ff4797a68c7350152e397cf85d2f0f5bc2c2d0cdad5790940b41a83592c81

Contents?: true

Size: 827 Bytes

Versions: 11

Compression:

Stored size: 827 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# == Schema Information
#
# Table name: contact_opportunities
#
#  id             :integer         not null, primary key
#  contact_id     :integer
#  opportunity_id :integer
#  role           :string(32)
#  deleted_at     :datetime
#  created_at     :datetime
#  updated_at     :datetime
#

class ContactOpportunity < ActiveRecord::Base
  belongs_to :contact
  belongs_to :opportunity
  validates_presence_of :contact_id, :opportunity_id

  # has_paper_trail

  ActiveSupport.run_load_hooks(:fat_free_crm_contact_opportunity, self)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 app/models/entities/contact_opportunity.rb
fat_free_crm-0.13.5 app/models/entities/contact_opportunity.rb
fat_free_crm-0.13.4 app/models/entities/contact_opportunity.rb
fat_free_crm-0.13.3 app/models/entities/contact_opportunity.rb
fat_free_crm-0.13.2 app/models/entities/contact_opportunity.rb
fat_free_crm-0.12.3 app/models/entities/contact_opportunity.rb
fat_free_crm-0.12.2 app/models/entities/contact_opportunity.rb
fat_free_crm-0.13.1 app/models/entities/contact_opportunity.rb
fat_free_crm-0.12.1 app/models/entities/contact_opportunity.rb
fat_free_crm-0.13.0 app/models/entities/contact_opportunity.rb
fat_free_crm-0.12.0 app/models/entities/contact_opportunity.rb