Manuel Bustillo 9e222f59be
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m47s
Add copyright notice / copyright_notice (pull_request) Successful in 2m49s
Run unit tests / unit_tests (pull_request) Successful in 3m26s
Add copyright notice
2024-11-30 18:31:48 +00:00

21 lines
488 B
Ruby

# Copyright (C) 2024 Manuel Bustillo
# == Schema Information
#
# Table name: weddings
#
# id :uuid not null, primary key
# date :date not null
# slug :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_weddings_on_slug (slug) UNIQUE
#
class Wedding < ApplicationRecord
validates :date, presence: true
validates :slug, presence: true, uniqueness: true
end