app/models/entities/campaign.rb in fat_free_crm-0.22.0 vs app/models/entities/campaign.rb in fat_free_crm-0.22.1
- old
+ new
@@ -33,11 +33,11 @@
class Campaign < ActiveRecord::Base
belongs_to :user, optional: true # TODO: Is this really optional?
belongs_to :assignee, class_name: "User", foreign_key: :assigned_to, optional: true # TODO: Is this really optional?
has_many :tasks, as: :asset, dependent: :destroy # , :order => 'created_at DESC'
- has_many :leads, -> { order "id DESC" }, dependent: :destroy
- has_many :opportunities, -> { order "id DESC" }, dependent: :destroy
+ has_many :leads, -> { order "id DESC" }
+ has_many :opportunities, -> { order "id DESC" }
has_many :emails, as: :mediator
serialize :subscribed_users, Array
scope :state, lambda { |filters|