mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 13:33:44 +08:00
1a7e954e09
* Depending on a hardcoded directory was a flawed design which made it impossible to debug when custom emojis go missing.
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
|