Sha256: a4c7024efb3e53bf1e1be3fb37089d2e60e170bceeb3440908cc689843bfdb83

Contents?: true

Size: 202 Bytes

Versions: 2

Compression:

Stored size: 202 Bytes

Contents

module Jobshop
  class Place < ApplicationRecord
    belongs_to :team

    validates(:name,
              uniqueness: { scope: :team_id, case_sensitive: false },
              presence: true)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jobshop-0.0.131 app/models/jobshop/place.rb
jobshop-0.0.127 app/models/jobshop/place.rb