2023-07-12 07:47:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-18 14:56:55 +00: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
|