Sha256: 5f859b7ae993f25173050ccdcd163edf048cd7ac359ac7bfdf8a2664300630c4

Contents?: true

Size: 193 Bytes

Versions: 46

Compression:

Stored size: 193 Bytes

Contents

module Shipit
  class Membership < ActiveRecord::Base
    belongs_to :team, required: true
    belongs_to :user, required: true

    validates :user_id, uniqueness: {scope: :team_id}
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
shipit-engine-0.7.0 app/models/shipit/membership.rb
shipit-engine-0.6.4 app/models/shipit/membership.rb
shipit-engine-0.6.3 app/models/shipit/membership.rb
shipit-engine-0.6.2 app/models/shipit/membership.rb
shipit-engine-0.6.1 app/models/shipit/membership.rb
shipit-engine-0.6.0 app/models/shipit/membership.rb