73b674b613
confirm_password_validation around action, unnecessary helpers removed, rubocop-rails suggestions applied Add username index and unique slug index migrations
9 lines
168 B
Ruby
9 lines
168 B
Ruby
# frozen_string_literal: true
|
|
|
|
class User < ApplicationRecord
|
|
validates :username, uniqueness: true
|
|
has_secure_password
|
|
|
|
has_many :links, dependent: :nullify
|
|
end
|