@@ -1587,9 +1587,9 @@ defmodule Ecto.Schema do
15871587 ## Options
15881588
15891589 * `:primary_key` - The `:primary_key` option can be used with the same arguments
1590- as `@primary_key` (see the [Schema attributes](https://hexdocs.pm/ecto/Ecto.Schema.html #module-schema-attributes)
1590+ as `@primary_key` (see the [Schema attributes](#module-schema-attributes)
15911591 section for more info). Primary keys are automatically set up for embedded schemas as well,
1592- defaulting to `{:id, :binary_id, autogenerate: true}`.
1592+ defaulting to `{:id, :binary_id, autogenerate: true}`.
15931593
15941594 * `:on_replace` - The action taken on associations when the embed is
15951595 replaced when casting or manipulating parent changeset. May be
@@ -2000,12 +2000,13 @@ defmodule Ecto.Schema do
20002000 writable = opts [ :writable ] || :always
20012001 put_struct_field ( mod , name , Keyword . get ( opts , :default ) )
20022002
2003- redact_field? = Keyword . get_lazy ( opts , :redact , fn ->
2004- case Module . get_attribute ( mod , :schema_redact , false ) do
2005- :all_except_primary_keys -> not pk?
2006- false -> false
2007- end
2008- end )
2003+ redact_field? =
2004+ Keyword . get_lazy ( opts , :redact , fn ->
2005+ case Module . get_attribute ( mod , :schema_redact , false ) do
2006+ :all_except_primary_keys -> not pk?
2007+ false -> false
2008+ end
2009+ end )
20092010
20102011 if redact_field? do
20112012 Module . put_attribute ( mod , :ecto_redact_fields , name )
0 commit comments