Set default: false on allow_next_upgrade_override in Team and User scheams (#4808)

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
This commit is contained in:
hq1 2024-11-12 10:51:25 +01:00 committed by GitHub
parent e31aeff721
commit fbafa9534f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ defmodule Plausible.Auth.User do
# A field only used as a manual override - allow subscribing # A field only used as a manual override - allow subscribing
# to any plan, even when exceeding its pageview limit # to any plan, even when exceeding its pageview limit
field :allow_next_upgrade_override, :boolean field :allow_next_upgrade_override, :boolean, default: false
# Fields for TOTP authentication. See `Plausible.Auth.TOTP`. # Fields for TOTP authentication. See `Plausible.Auth.TOTP`.
field :totp_enabled, :boolean, default: false field :totp_enabled, :boolean, default: false

View File

@ -16,7 +16,7 @@ defmodule Plausible.Teams.Team do
field :name, :string field :name, :string
field :trial_expiry_date, :date field :trial_expiry_date, :date
field :accept_traffic_until, :date field :accept_traffic_until, :date
field :allow_next_upgrade_override, :boolean field :allow_next_upgrade_override, :boolean, default: false
embeds_one :grace_period, Plausible.Auth.GracePeriod, on_replace: :update embeds_one :grace_period, Plausible.Auth.GracePeriod, on_replace: :update