Sha256: 79cc0ab37fd582ccb6c32d50e4870b9a210ea993419553b55c15a7f29258cebe

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

module Georgia
  class Role < ActiveRecord::Base

    has_many :role_assignments, dependent: :destroy
    has_many :users, through: :role_assignments

    validates :name, presence: true, uniqueness: { case_sensitive: false }

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/models/georgia/role.rb