orbit-basic/app/models/user_role.rb

11 lines
150 B
Ruby

class UserRole
include Mongoid::Document
include Mongoid::Timestamps
field :key
embedded_in :user, :inverse_of => :user_roles
end