This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/models/other_account.rb

15 lines
292 B
Ruby

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