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