Sha256: 5af1c330942c010a3e1575be6b85d0801f80276ef422be1293b98bfb270240d4

Contents?: true

Size: 852 Bytes

Versions: 15

Compression:

Stored size: 852 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 :class_name => 'Version'

  ActiveSupport.run_load_hooks(:fat_free_crm_contact_opportunity, self)
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/models/entities/contact_opportunity.rb
fat_free_crm-0.15.2 app/models/entities/contact_opportunity.rb
fat_free_crm-0.16.4 app/models/entities/contact_opportunity.rb
fat_free_crm-0.14.1 app/models/entities/contact_opportunity.rb
fat_free_crm-0.15.1 app/models/entities/contact_opportunity.rb
fat_free_crm-0.16.3 app/models/entities/contact_opportunity.rb
fat_free_crm-0.16.2 app/models/entities/contact_opportunity.rb
fat_free_crm-0.16.1 app/models/entities/contact_opportunity.rb
fat_free_crm-0.16.0 app/models/entities/contact_opportunity.rb
fat_free_crm-0.15.0 app/models/entities/contact_opportunity.rb
fat_free_crm-0.15.0.beta.2 app/models/entities/contact_opportunity.rb
fat_free_crm-0.15.0.beta app/models/entities/contact_opportunity.rb
fat_free_crm-0.14.0 app/models/entities/contact_opportunity.rb
reduced_fat_crm-0.15.0.beta app/models/entities/contact_opportunity.rb
reduced_fat_crm-0.14.0 app/models/entities/contact_opportunity.rb