analytics/priv/repo/migrations/20191015073507_proper_timestamp_for_pageviews.exs

12 lines
239 B
Elixir
Raw Normal View History

2019-10-15 10:37:55 +03:00
defmodule Plausible.Repo.Migrations.ProperTimestampForPageviews do
use Ecto.Migration
def change do
alter table(:pageviews) do
remove :updated_at
end
rename table(:pageviews), :inserted_at, to: :timestamp
end
end