Sha256: 22a930cbe95f891ed9326e7c5effa4f97399be9d264be72c3457732e3f6fae48

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

class UserMembership < ActiveRecord::Base
  
  # Be careful here!  :user needs to come out of this if we ever support update action on memberships controller
  attr_accessible :user
  
  belongs_to :user
  belongs_to :organization

  validates :user_id, :uniqueness => {:scope => :organization_id}
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.4 app/models/user_membership.rb
artfully_ose-1.2.0.pre.3 app/models/user_membership.rb
artfully_ose-1.2.0.pre.2 app/models/user_membership.rb
artfully_ose-1.2.0.pre.1 app/models/user_membership.rb
artfully_ose-1.2.0.pre app/models/user_membership.rb