Sha256: 0b4b77e8c99ecb219e3611042571446dd1ce0274cf65d5649b104954ddd922f7

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

module Pbw
  class UserToken
    include ::Mongoid::Document
    include ::Mongoid::Timestamps
    field :name, type: String
    validates_presence_of :name

    belongs_to :token
    belongs_to :user

    has_and_belongs_to_many :areas
    has_many :item_containers
    
    attr_accessible :name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pbw-0.0.4 app/models/pbw/user_token.rb
pbw-0.0.3 app/models/pbw/user_token.rb