Sha256: c36fd5a34c381a9c5a6f3eadb3f77a9b3919e674bf9658e1093d3311108155ea

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 Bytes

Contents

module Mks
  module Auth
    class ApplicationModule < ApplicationRecord
      #self.table_name = 'mks_application_modules'

      validates :code, presence: true
      validates :code, presence: true, uniqueness: true

      has_many :users, class_name: 'Mks::Auth::User'
      has_many :menus, class_name: 'Mks::Auth::Menu'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mks_auth-1.4.0 app/models/mks/auth/application_module.rb
mks_auth-1.2.0 app/models/mks/auth/application_module.rb
mks_auth-1.0.0 app/models/mks/auth/application_module.rb