mobilizon/priv/repo/migrations/20210601082613_fix_user_settings_nullable_fields.exs
Thomas Citharel 58bffc5c66
WIP notification settings
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-04 13:33:25 +02:00

11 lines
304 B
Elixir

defmodule Mobilizon.Storage.Repo.Migrations.FixUserSettingsNullableFields do
use Ecto.Migration
def change do
alter table(:user_settings) do
modify(:group_notifications, :integer, default: 10, null: false)
modify(:last_notification_sent, :utc_datetime, null: true)
end
end
end