Sha256: 0b60056c485809e632c5c24b29b20f4f7d20dbb93bae8aec4a36a96d731cd4a0
Contents?: true
Size: 408 Bytes
Versions: 12
Compression:
Stored size: 408 Bytes
Contents
class User < ApplicationRecord has_secure_password has_many :access_grants, class_name: 'Doorkeeper::AccessGrant', foreign_key: :resource_owner_id, inverse_of: :resource_owner, dependent: :destroy has_many :access_tokens, class_name: 'Doorkeeper::AccessToken', foreign_key: :resource_owner_id, inverse_of: :resource_owner, dependent: :destroy validates :email, presence: true, uniqueness: true end
Version data entries
12 entries across 12 versions & 1 rubygems