analytics/priv/repo/migrations/20200619071221_create_salts_table.exs
Uku Taht 4d55c4657a
Rotate salts on a daily basis (#224)
* Add daily salt rotation for user ids

* Rotate salts on a cron schedule daily

* Keep old salt fo 48 hours

* Double write for plausible.io to test salt rotation

* Rotate salts for every site
2020-07-15 11:47:24 +03:00

12 lines
214 B
Elixir

defmodule Plausible.Repo.Migrations.CreateSaltsTable do
use Ecto.Migration
def change do
create table(:salts) do
add :salt, :bytea, null: false
timestamps(updated_at: false)
end
end
end