orbit-4-2/app/models/user/status.rb

14 lines
220 B
Ruby

class Status
include Mongoid::Document
include Mongoid::Timestamps
has_and_belongs_to_many :users
field :key
belongs_to :role
# has_and_belongs_to_many :sub_roles
field :title, localize: true
end