orbit-4-2/app/models/desktop/other_account.rb

15 lines
292 B
Ruby
Raw Normal View History

class OtherAccount
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Encryptor
field :user_id
field :type
field :email
field :encrypted_password
encrypts :encrypted_password, :mode => :symmetric, :password => 'rulingcom'
belongs_to :user
end