Some checks failed
		
		
	
	Run unit tests / rubocop (pull_request) Successful in 48s
				
			Run unit tests / check-licenses (pull_request) Successful in 55s
				
			Run unit tests / copyright_notice (pull_request) Successful in 1m16s
				
			Run unit tests / unit_tests (pull_request) Failing after 3m39s
				
			Run unit tests / build-static-assets (pull_request) Has been skipped
				
			
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # Copyright (C) 2024-2025 LibreWeddingPlanner contributors
 | |
| 
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| # == Schema Information
 | |
| #
 | |
| # Table name: users
 | |
| #
 | |
| #  id                     :uuid             not null, primary key
 | |
| #  confirmation_sent_at   :datetime
 | |
| #  confirmation_token     :string
 | |
| #  confirmed_at           :datetime
 | |
| #  email                  :string           default(""), not null
 | |
| #  encrypted_password     :string           default(""), not null
 | |
| #  failed_attempts        :integer          default(0), not null
 | |
| #  locked_at              :datetime
 | |
| #  reset_password_sent_at :datetime
 | |
| #  reset_password_token   :string
 | |
| #  unconfirmed_email      :string
 | |
| #  unlock_token           :string
 | |
| #  created_at             :datetime         not null
 | |
| #  updated_at             :datetime         not null
 | |
| #  wedding_id             :uuid             not null
 | |
| #
 | |
| # Indexes
 | |
| #
 | |
| #  index_users_on_confirmation_token    (confirmation_token) UNIQUE
 | |
| #  index_users_on_email                 (email) UNIQUE
 | |
| #  index_users_on_reset_password_token  (reset_password_token) UNIQUE
 | |
| #  index_users_on_unlock_token          (unlock_token) UNIQUE
 | |
| #  index_users_on_wedding_id            (wedding_id)
 | |
| #
 | |
| # Foreign Keys
 | |
| #
 | |
| #  fk_rails_...  (wedding_id => weddings.id) ON DELETE => cascade
 | |
| #
 | |
| class User < ApplicationRecord
 | |
|   acts_as_tenant :wedding
 | |
| 
 | |
|   devise :database_authenticatable, :registerable,
 | |
|          :recoverable, :validatable, :confirmable, :lockable
 | |
| end
 |