Sha256: dd5779321884f6013a24b390d8eeb03c255dbd37e1337a2084aada1673810f0a

Contents?: true

Size: 1005 Bytes

Versions: 10

Compression:

Stored size: 1005 Bytes

Contents

class UserGroup < ApplicationRecord
  include MasterModel
  has_many :profiles

  validates_numericality_of :valid_period_for_new_user,
    greater_than_or_equal_to: 0,
    allow_blank: true

  paginates_per 10
end

# == Schema Information
#
# Table name: user_groups
#
#  id                               :integer          not null, primary key
#  name                             :string
#  display_name                     :text
#  note                             :text
#  position                         :integer
#  created_at                       :datetime
#  updated_at                       :datetime
#  deleted_at                       :datetime
#  valid_period_for_new_user        :integer          default(0), not null
#  expired_at                       :datetime
#  number_of_day_to_notify_overdue  :integer          default(7), not null
#  number_of_day_to_notify_due_date :integer          default(3), not null
#  number_of_time_to_notify_overdue :integer          default(3), not null
#

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
enju_library-0.3.11 app/models/user_group.rb
enju_library-0.3.10 app/models/user_group.rb
enju_library-0.3.9 app/models/user_group.rb
enju_library-0.3.8 app/models/user_group.rb
enju_library-0.3.8.rc.2 app/models/user_group.rb
enju_library-0.3.8.rc.1 app/models/user_group.rb
enju_library-0.3.7 app/models/user_group.rb
enju_library-0.3.6 app/models/user_group.rb
enju_library-0.3.5 app/models/user_group.rb
enju_library-0.3.4 app/models/user_group.rb