This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-12 00:47:08 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-01-19 13:37:27 -08:00
|
|
|
class CreateStatusEdits < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
create_table :status_edits do |t|
|
|
|
|
t.belongs_to :status, null: false, foreign_key: { on_delete: :cascade }
|
|
|
|
t.belongs_to :account, null: true, foreign_key: { on_delete: :nullify }
|
|
|
|
t.text :text, null: false, default: ''
|
|
|
|
t.text :spoiler_text, null: false, default: ''
|
|
|
|
t.boolean :media_attachments_changed, null: false, default: false
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|