20190117114553_create_tombstones.rb 273 B

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