1
0

20190117114553_create_tombstones.rb 304 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateTombstones < ActiveRecord::Migration[5.2]
  3. def change
  4. create_table :tombstones do |t|
  5. t.belongs_to :account, foreign_key: { on_delete: :cascade }
  6. t.string :uri, null: false
  7. t.timestamps
  8. end
  9. add_index :tombstones, :uri
  10. end
  11. end