index.community/backend/priv/repo/migrations/20190710155001_create_crawls.exs
2019-08-07 22:41:19 +03:00

20 lines
430 B
Elixir

defmodule Backend.Repo.Migrations.CreateCrawls do
use Ecto.Migration
def change do
create table(:crawls) do
add :instance_domain, references(:instances, column: :domain, type: :string), null: false
add :statuses_seen, :integer
add :interactions_seen, :integer
add :error, :text
timestamps()
end
create index(:crawls, [:error])
create index(:crawls, [:inserted_at])
end
end