15 lines
292 B
Ruby
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
|