discourse/app/models/custom_emoji.rb
Joffrey JAFFEUX 0996c3b7b3
FEATURE: allows multiple custom emoji groups (#9308)
Note: DBHelper would fail with a sql syntax error on columns like "group".

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2020-03-30 20:16:10 +02:00

25 lines
546 B
Ruby

# frozen_string_literal: true
class CustomEmoji < ActiveRecord::Base
belongs_to :upload
validates :name, presence: true, uniqueness: true
validates :upload_id, presence: true
end
# == Schema Information
#
# Table name: custom_emojis
#
# id :integer not null, primary key
# name :string not null
# upload_id :integer not null
# group :string
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_custom_emojis_on_name (name) UNIQUE
#