Sha256: c498d8a4f77c3ea3d16ca324d11d140af81a83e20ed7baa1d6f6408841b104f4

Contents?: true

Size: 194 Bytes

Versions: 14

Compression:

Stored size: 194 Bytes

Contents

class GroupPerson < ActiveRecord::Base
  belongs_to :group
  belongs_to :person

  validates :person_id, uniqueness: { scope: :group_id, message: 'can only be part once of the same group' }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kadmin-0.5.7 test/dummy/app/models/group_person.rb
kadmin-0.5.6 test/dummy/app/models/group_person.rb
kadmin-0.4.2 test/dummy/app/models/group_person.rb
kadmin-0.4.1 test/dummy/app/models/group_person.rb
kadmin-0.4.0 test/dummy/app/models/group_person.rb
kadmin-0.3.1 test/dummy/app/models/group_person.rb
kadmin-0.3.0 test/dummy/app/models/group_person.rb
kadmin-0.2.8 test/dummy/app/models/group_person.rb
kadmin-0.2.7 test/dummy/app/models/group_person.rb
kadmin-0.2.6 test/dummy/app/models/group_person.rb
kadmin-0.2.3 test/dummy/app/models/group_person.rb
kadmin-0.2.2 test/dummy/app/models/group_person.rb
kadmin-0.1.7 test/dummy/app/models/group_person.rb
kadmin-0.1.6 test/dummy/app/models/group_person.rb