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

Version Path
mobile_workflow-0.12.2 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.12.1 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.12.0 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.11.1 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.11.0 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.10.2 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.10.1 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.10.0 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.9.0 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.8.9 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.7.9 lib/generators/mobile_workflow/install/templates/user.rb.erb
mobile_workflow-0.7.8 lib/generators/mobile_workflow/install/templates/user.rb.erb