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