mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-02 21:13:02 -05:00
a37753179d
This is a model for attaching a single note to a single other entity. For #193, we'll use it for annotating blocks, mutes, and account-level domain blocks.
16 lines
406 B
Ruby
16 lines
406 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
|
|
end
|