Sha256: b0a303fa2fa469c0cf05dfb83db21453fdefee0348da5e0cfed817e6f1e044a5

Contents?: true

Size: 213 Bytes

Versions: 10

Compression:

Stored size: 213 Bytes

Contents

# frozen_string_literal: true
module Shipit
  class Membership < Record
    belongs_to :team, required: true
    belongs_to :user, required: true

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/models/shipit/membership.rb
shipit-engine-0.38.0 app/models/shipit/membership.rb
shipit-engine-0.37.0 app/models/shipit/membership.rb
shipit-engine-0.36.1 app/models/shipit/membership.rb
shipit-engine-0.36.0 app/models/shipit/membership.rb
shipit-engine-0.35.1 app/models/shipit/membership.rb
shipit-engine-0.35.0 app/models/shipit/membership.rb
shipit-engine-0.34.0 app/models/shipit/membership.rb
shipit-engine-0.33.0 app/models/shipit/membership.rb
shipit-engine-0.32.0 app/models/shipit/membership.rb