1
0

20210908220918_create_status_edits.rb 470 B

12345678910111213
  1. class CreateStatusEdits < ActiveRecord::Migration[6.1]
  2. def change
  3. create_table :status_edits do |t|
  4. t.belongs_to :status, null: false, foreign_key: { on_delete: :cascade }
  5. t.belongs_to :account, null: true, foreign_key: { on_delete: :nullify }
  6. t.text :text, null: false, default: ''
  7. t.text :spoiler_text, null: false, default: ''
  8. t.boolean :media_attachments_changed, null: false, default: false
  9. t.timestamps
  10. end
  11. end
  12. end