5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 20:26:22 +00:00
panel/app/models/code_of_conduct.rb

15 lines
430 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
# Códigos de conducta
class CodeOfConduct < ApplicationRecord
extend Mobility
translates :title, type: :string, locale_accessors: true
translates :description, type: :text, locale_accessors: true
translates :content, type: :text, locale_accessors: true
validates :title, presence: true, uniqueness: true
validates :description, presence: true
validates :content, presence: true
end