blob: 8ce4c77c5310bd4baefc069cf9fe25d9820d76d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
defmodule Pleroma.Repo.Migrations.AddBirthdayMonthDayIndexToUsers do
use Ecto.Migration
def change do
create(
index(:users, ["date_part('month', birthday)", "date_part('day', birthday)"],
name: :users_birthday_month_day_index
)
)
end
end
|