tootlab-mastodon/db/migrate/20180118192721_create_glitch_notes.rb
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

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