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.
12 lines
296 B
Ruby
12 lines
296 B
Ruby
class CreateGlitchNotes < ActiveRecord::Migration[5.1]
|
|
def change
|
|
create_table :glitch_notes do |t|
|
|
t.bigint :target_id, null: false
|
|
t.string :target_type, null: false
|
|
t.text :note, null: false
|
|
t.index [:target_id, :target_type]
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|