2023-07-12 17:47:08 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-19 01:56:55 +11: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
|