summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs
blob: f610eeb10f232588fb8d5c4ec0d99d8bd2be7c1d (plain)
1
2
3
4
5
6
7
8
9
10
defmodule Pleroma.Repo.Migrations.AddBirthDateToUsers do
  use Ecto.Migration

  def change do
    alter table(:users) do
      add_if_not_exists(:birth_date, :date)
      add_if_not_exists(:hide_birth_date, :boolean, default: false, null: false)
    end
  end
end