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.31.0 app/models/shipit/membership.rb
shipit-engine-0.30.0 app/models/shipit/membership.rb
shipit-engine-0.29.0 app/models/shipit/membership.rb
shipit-engine-0.28.1 app/models/shipit/membership.rb
shipit-engine-0.28.0 app/models/shipit/membership.rb
shipit-engine-0.27.1 app/models/shipit/membership.rb
shipit-engine-0.27.0 app/models/shipit/membership.rb
shipit-engine-0.26.0 app/models/shipit/membership.rb
shipit-engine-0.25.1 app/models/shipit/membership.rb
shipit-engine-0.25.0 app/models/shipit/membership.rb
shipit-engine-0.24.0 app/models/shipit/membership.rb
shipit-engine-0.23.1 app/models/shipit/membership.rb
shipit-engine-0.23.0 app/models/shipit/membership.rb
shipit-engine-0.22.0 app/models/shipit/membership.rb
shipit-engine-0.21.0 app/models/shipit/membership.rb
shipit-engine-0.20.1 app/models/shipit/membership.rb
shipit-engine-0.20.0 app/models/shipit/membership.rb
shipit-engine-0.19.0 app/models/shipit/membership.rb
shipit-engine-0.18.1 app/models/shipit/membership.rb
shipit-engine-0.18.0 app/models/shipit/membership.rb