discourse/app/models/custom_emoji.rb

Failed to ignore revisions in .git-blame-ignore-revs.

25 lines
546 B
Ruby
Raw Normal View History

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