David Yip a37753179d
Introduce Glitch::Note (#193)
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.
2018-01-25 22:07:11 -06:00

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