Adds dependent restricted association to some models

fix #348
This commit is contained in:
chrisbr 2014-12-18 13:38:40 +01:00
parent 87b1aba1e9
commit 799fd0c3a4
19 changed files with 65 additions and 66 deletions

View file

@ -4,7 +4,7 @@ class Campaign < ActiveRecord::Base
validates :name, :utm_campaign, presence: true
has_many :targets
has_many :targets, dependent: :nullify
belongs_to :conference
##