Manuel Bustillo 5f9b64a93b
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 2m22s
Add copyright notice / copyright_notice (pull_request) Successful in 3m28s
Run unit tests / unit_tests (pull_request) Successful in 6m23s
Merge first and last name and expose guest update endpoint
2024-11-11 07:43:42 +01:00

16 lines
279 B
Ruby

# Copyright (C) 2024 Manuel Bustillo
class Guest < ApplicationRecord
belongs_to :group
enum :status, {
considered: 0,
invited: 10,
confirmed: 20,
declined: 30,
tentative: 40
}
scope :potential, -> { where.not(status: %i[declined considered]) }
end