index.community/backend/priv/repo/migrations/20190710155112_create_crawl_interactions.exs

17 lines
476 B
Elixir
Raw Normal View History

2019-07-14 11:47:06 +00:00
defmodule Backend.Repo.Migrations.CreateCrawlInteractions do
use Ecto.Migration
def change do
create table(:crawl_interactions) do
add :crawl_id, references(:crawls, on_delete: :delete_all), null: false
add :source_domain, references(:instances, column: :domain, type: :string), null: false
add :target_domain, references(:instances, column: :domain, type: :string), null: false
add :mentions, :integer
timestamps()
end
end
end