Last active
August 29, 2015 14:22
-
-
Save HeroicEric/9ca2fae3040d14fd0e39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** (FunctionClauseError) no function clause matching in Ecto.Adapters.Postgres.DateTime.encode_date/1 | |
stacktrace: | |
(ecto) lib/ecto/adapters/postgres/datetime.ex:36: Ecto.Adapters.Postgres.DateTime.encode_date({{2010, 4, 17}, {14, 0, 0, 0}}) | |
lib/postgrex/protocol.ex:280: anonymous fn/2 in Postgrex.Protocol.encode_params/1 | |
(elixir) lib/enum.ex:977: anonymous fn/3 in Enum.map/2 | |
(elixir) lib/enum.ex:1261: Enum."-reduce/3-lists^foldl/2-0-"/3 | |
(elixir) lib/enum.ex:977: Enum.map/2 | |
lib/postgrex/protocol.ex:275: Postgrex.Protocol.encode_params/1 | |
lib/postgrex/protocol.ex:245: Postgrex.Protocol.send_params/2 | |
lib/postgrex/protocol.ex:126: Postgrex.Protocol.message/3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@valid_attrs %{ | |
access_token: "some content", | |
expires_at: %{day: 17, hour: 14, min: 0, month: 4, year: 2010}, | |
user_id: 42 | |
} | |
@invalid_attrs %{} | |
test "changeset with valid attributes" do | |
changeset = APIKey.changeset(%APIKey{}, @valid_attrs) | |
Repo.insert changeset | |
assert changeset.valid? | |
end |
Author
HeroicEric
commented
May 30, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment