Skip to content

Commit

Permalink
Get rid off timex_ecto
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed Oct 30, 2016
1 parent 3e203f4 commit 17442b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/db/schemas/credentials/card_token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Tokenizer.DB.Schemas.CardToken do
embedded_schema do
field :type, Tokenizer.DB.Enums.AccountCredential, default: "card-token"
field :token, :string
field :token_expires_at, Timex.Ecto.DateTime
field :token_expires_at, :utc_datetime
end

def changeset(struct, params \\ %{}) do
Expand Down
2 changes: 1 addition & 1 deletion lib/db/schemas/payment.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Tokenizer.DB.Schemas.Payment do
schema "payments" do
field :external_id, :string
field :token, :string
field :token_expires_at, Timex.Ecto.DateTime
field :token_expires_at, :utc_datetime
field :amount, :decimal
field :fee, :decimal
field :description, :string
Expand Down
3 changes: 1 addition & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Tokenizer.Mixfile do
# Type "mix help compile.app" for more information
def application do
[applications: [:logger, :phoenix, :phoenix_ecto, :cowboy, :httpoison, :poison,
:ecto, :postgrex, :ecto_enum, :timex, :timex_ecto],
:ecto, :postgrex, :ecto_enum, :timex],
included_applications: [:credit_card, :confex, :eview],
mod: {Tokenizer, []}]
end
Expand Down Expand Up @@ -60,7 +60,6 @@ defmodule Tokenizer.Mixfile do
{:phoenix, "~> 1.2"},
{:credit_card, "~> 1.0"},
{:timex, "~> 3.0"},
{:timex_ecto, "~> 3.0"},
{:phoenix_ecto, "3.1.0-rc.0"}, # TODO: Update when Ecto will release v2.1
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
{:excoveralls, "~> 0.5", only: [:dev, :test]},
Expand Down

0 comments on commit 17442b2

Please sign in to comment.