2023-07-12 00:47:08 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-18 06:56:55 -08:00
|
|
|
class CreateTombstones < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
create_table :tombstones do |t|
|
|
|
|
t.belongs_to :account, foreign_key: { on_delete: :cascade }
|
|
|
|
t.string :uri, null: false
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :tombstones, :uri
|
|
|
|
end
|
|
|
|
end
|