Sha256: 080344157b546922b99445641c62c1211080033297029f5402a3dfb221778cf5
Contents?: true
Size: 617 Bytes
Versions: 8
Compression:
Stored size: 617 Bytes
Contents
# frozen_string_literal: true class OldPassword include Mongoid::Document ## Database authenticatable field :encrypted_password, type: String validates_presence_of :encrypted_password field :password_salt, type: String field :password_archivable_type, type: String validates_presence_of :password_archivable_type field :password_archivable_id, type: String validates_presence_of :password_archivable_id index({ password_archivable_type: 1, password_archivable_id: 1 }, name: 'index_password_archivable') include Mongoid::Timestamps belongs_to :password_archivable, polymorphic: true end
Version data entries
8 entries across 8 versions & 1 rubygems