Merge pull request #138 from houdiniproject/merged_into
Add merged_into association for Supporter
This commit is contained in:
commit
e1cef5be21
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ class Supporter < ActiveRecord::Base
|
|||
has_many :tag_masters, through: :tag_joins
|
||||
has_many :custom_field_joins, dependent: :destroy
|
||||
has_many :custom_field_masters, through: :custom_field_joins
|
||||
belongs_to :merged_into, class_name: 'Supporter', :foreign_key => 'merged_into'
|
||||
|
||||
validates :nonprofit, :presence => true
|
||||
scope :not_deleted, -> {where(deleted: false)}
|
||||
|
|
Loading…
Reference in a new issue