Sha256: 876f65698b56f031f6be90dfa6c9bf807937b4fa9271d80e0d0cc7919ada3f49

Contents?: true

Size: 218 Bytes

Versions: 3

Compression:

Stored size: 218 Bytes

Contents

class AccountMembership < ActiveRecord::Base
  belongs_to :user
  belongs_to :account

  validates_presence_of :user_id
  validates_presence_of :account_id
  validates_uniqueness_of :user_id, :scope => :account_id
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
saucy-0.1.3 app/models/account_membership.rb
saucy-0.1.2 app/models/account_membership.rb
saucy-0.1.1 app/models/account_membership.rb