Merge branch 'master' into p2p_improvements
This commit is contained in:
commit
3b45778225
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 :tag_masters, through: :tag_joins
|
||||||
has_many :custom_field_joins, dependent: :destroy
|
has_many :custom_field_joins, dependent: :destroy
|
||||||
has_many :custom_field_masters, through: :custom_field_joins
|
has_many :custom_field_masters, through: :custom_field_joins
|
||||||
|
belongs_to :merged_into, class_name: 'Supporter', :foreign_key => 'merged_into'
|
||||||
|
|
||||||
validates :nonprofit, :presence => true
|
validates :nonprofit, :presence => true
|
||||||
scope :not_deleted, -> {where(deleted: false)}
|
scope :not_deleted, -> {where(deleted: false)}
|
||||||
|
|
Loading…
Reference in a new issue