The code powering m.abunchtell.com https://m.abunchtell.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

18 linhas
458 B

  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: custom_emoji_categories
  5. #
  6. # id :bigint(8) not null, primary key
  7. # name :string
  8. # created_at :datetime not null
  9. # updated_at :datetime not null
  10. #
  11. class CustomEmojiCategory < ApplicationRecord
  12. has_many :emojis, class_name: 'CustomEmoji', foreign_key: 'category_id', inverse_of: :category
  13. validates :name, presence: true, uniqueness: true
  14. end