main
1class Sparkle < ApplicationRecord
2  belongs_to :sparkler, class_name: 'User'
3  belongs_to :sparklee, class_name: 'User'
4
5  validates :reason, length: { maximum: 255 }, allow_blank: true
6  validates :sparkler, :sparklee, presence: true
7
8  scope :recent, ->() { order(created_at: :desc) }
9end