mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:15:47 +08:00
7 lines
156 B
Ruby
7 lines
156 B
Ruby
|
class CustomEmoji < ActiveRecord::Base
|
||
|
belongs_to :upload
|
||
|
|
||
|
validates :name, presence: true, uniqueness: true
|
||
|
validates :upload_id, presence: true
|
||
|
end
|