diff options
| author | Alex S <alex.strizhakov@gmail.com> | 2019-04-06 16:58:22 +0700 |
|---|---|---|
| committer | Alex S <alex.strizhakov@gmail.com> | 2019-04-06 16:58:22 +0700 |
| commit | 0484f3a8b1ae2103d1d756e5c09f2bdb218a7207 (patch) | |
| tree | 90be5ef8e4c80750e115a835117ab502e32030ba /priv | |
| parent | 3c5daa0235aaf47eeeda557fd677e3604cb7d701 (diff) | |
| download | pleroma-0484f3a8b1ae2103d1d756e5c09f2bdb218a7207.tar.gz pleroma-0484f3a8b1ae2103d1d756e5c09f2bdb218a7207.zip | |
generating tokens with mix
Diffstat (limited to 'priv')
| -rw-r--r-- | priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs b/priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs new file mode 100644 index 000000000..abdd5e277 --- /dev/null +++ b/priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs @@ -0,0 +1,12 @@ +defmodule Pleroma.Repo.Migrations.AddFieldsToUserInviteTokens do + use Ecto.Migration + + def change do + alter table(:user_invite_tokens) do + add(:expire_at, :date) + add(:uses, :integer, default: 0) + add(:max_use, :integer) + add(:token_type, :string, default: "one_time") + end + end +end |
