about summary refs log tree commit diff
path: root/db/migrate/20190117114553_create_tombstones.rb
blob: 06d6d8c5ad01aafe577c2ae160a9a81dc0c157c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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