Current section
Files
Jump to
Current section
Files
priv/repo/migrations/20161105014111_create_errors.exs
defmodule TestRepo.Migrations.AddFlames do
use Ecto.Migration
def change do
create table(:errors) do
add :message, :text
add :level, :string
add :timestamp, :utc_datetime
add :alive, :boolean
add :module, :string
add :function, :string
add :file, :string
add :line, :integer
add :count, :integer
add :hash, :string
add :incidents, :json
timestamps()
end
create index(:errors, [:hash])
create index(:errors, [:updated_at])
end
end