Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed May 17, 2024
1 parent aac0d2c commit a952467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mix/tasks/phx.gen.auth/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Mix.Tasks.Phx.Gen.Auth.Migration do
end

defp extensions(Ecto.Adapters.Postgres) do
if case_insensitive_field_type() == :citext do
if case_insensitive_field_type(:citext) == :citext do
["execute \"CREATE EXTENSION IF NOT EXISTS citext\", \"\""]
else
[]
Expand All @@ -32,7 +32,7 @@ defmodule Mix.Tasks.Phx.Gen.Auth.Migration do
end

defp column_definition(:email, Ecto.Adapters.Postgres),
do: "add :email, #{inspect(case_insensitive_field_type())}, null: false"
do: "add :email, #{inspect(case_insensitive_field_type(:citext))}, null: false"

defp column_definition(:email, Ecto.Adapters.SQLite3),
do: "add :email, :string, null: false, collate: :nocase"
Expand Down

0 comments on commit a952467

Please sign in to comment.