Sha256: 826fc5ef4abac4e8dcbfff3ad06214e76fda44e227aa5a876f5c6ceb926373dd

Contents?: true

Size: 861 Bytes

Versions: 7

Compression:

Stored size: 861 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: account_contacts
#
#  id         :integer         not null, primary key
#  account_id :integer
#  contact_id :integer
#  deleted_at :datetime
#  created_at :datetime
#  updated_at :datetime
#

class AccountContact < ActiveRecord::Base
  belongs_to :account
  belongs_to :contact

  has_paper_trail class_name: 'Version', meta: { related: :contact },
                  ignore: [:id, :created_at, :updated_at, :contact_id]

  validates_presence_of :account_id

  ActiveSupport.run_load_hooks(:fat_free_crm_account_contact, self)
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/models/entities/account_contact.rb
fat_free_crm-0.14.1 app/models/entities/account_contact.rb
fat_free_crm-0.15.0.beta.2 app/models/entities/account_contact.rb
fat_free_crm-0.15.0.beta app/models/entities/account_contact.rb
fat_free_crm-0.14.0 app/models/entities/account_contact.rb
reduced_fat_crm-0.15.0.beta app/models/entities/account_contact.rb
reduced_fat_crm-0.14.0 app/models/entities/account_contact.rb