mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-09 00:12:13 -05:00
20 lines
473 B
Ruby
20 lines
473 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: glitch_notes
|
|
#
|
|
# id :integer not null, primary key
|
|
# target_id :integer not null
|
|
# target_type :string not null
|
|
# note :text not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
|
|
class Glitch::Note < ApplicationRecord
|
|
belongs_to :target, polymorphic: true
|
|
|
|
validates :note, presence: true
|
|
|
|
alias_attribute :text, :note
|
|
end
|