Files
discourse/plugins/discourse-events/app/models/discourse_calendar/disabled_holiday.rb
T
David Battersby 629c919eb2 DEV: rename Discourse Calendar to Discourse Events (#42021)
Moves the plugin directory and associated files, along with updating
various import references.
2026-08-12 11:34:15 +04:00

25 lines
667 B
Ruby

# frozen_string_literal: true
module DiscourseCalendar
class DisabledHoliday < ActiveRecord::Base
validates :holiday_name, presence: true
validates :region_code, presence: true
end
end
# == Schema Information
#
# Table name: discourse_calendar_disabled_holidays
#
# id :bigint not null, primary key
# disabled :boolean default(TRUE), not null
# holiday_name :string not null
# region_code :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_disabled_holidays_on_holiday_name_and_region_code (holiday_name,region_code)
#