mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Moves the plugin directory and associated files, along with updating various import references.
25 lines
667 B
Ruby
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)
|
|
#
|