Sha256: ff0f08dac6a6e13ea79a450e194ca343290b22fc3658f737f402bf1f55c2e52e
Contents?: true
Size: 200 Bytes
Versions: 1
Compression:
Stored size: 200 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kadmin-0.3.2 | test/dummy/app/models/group_person.rb |