Packages

A library to define Ecto schemas with typespecs without all the boilerplate code.

Current section

8 Versions

Jump to

Compare versions

4 files changed
+4 additions
-4 deletions
  @@ -59,7 +59,7 @@ end
59 59 Install it, add to your deps:
60 60
61 61 ```elixir
62 - {:typed_ecto_schema, "~> 0.4.0"}
62 + {:typed_ecto_schema, "~> 0.4.1", runtime: false}
63 63 ```
64 64
65 65 And change your `use Ecto.Schema` for `use TypedEctoSchema` and change the calls to `schema` for
  @@ -19,4 +19,4 @@
19 19 {<<"optional">>,false},
20 20 {<<"repository">>,<<"hexpm">>},
21 21 {<<"requirement">>,<<"~> 3.5">>}]]}.
22 - {<<"version">>,<<"0.4.0">>}.
22 + {<<"version">>,<<"0.4.1">>}.
  @@ -43,7 +43,7 @@ defmodule TypedEctoSchema.SyntaxSugar do
43 43 @spec transform_expression(Macro.t(), Macro.Env.t()) :: Macro.t()
44 44 defp transform_expression({function_name, _, [name, type, opts]}, _env)
45 45 when function_name in @schema_function_names do
46 - ecto_opts = Keyword.drop(opts, [:__typed_ecto_type__, :enforce])
46 + ecto_opts = Keyword.drop(opts, [:__typed_ecto_type__, :enforce, :null])
47 47
48 48 quote do
49 49 unquote(function_name)(unquote(name), unquote(type), unquote(ecto_opts))
  @@ -4,7 +4,7 @@ defmodule TypedEctoSchema.MixProject do
4 4 def project do
5 5 [
6 6 app: :typed_ecto_schema,
7 - version: "0.4.0",
7 + version: "0.4.1",
8 8 elixir: "~> 1.9",
9 9 elixirc_paths: elixirc_paths(Mix.env()),
10 10 start_permanent: Mix.env() == :prod,