mobilizon/priv/repo/migrations/20210601082613_fix_user_settings_nullable_fields.exs

11 lines
304 B
Elixir
Raw Normal View History

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