Skip to content

Commit

Permalink
Upgrading to ecto 2.2 rc
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinst committed Aug 11, 2017
1 parent a40676a commit c5ca99f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/triplex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Triplex do
return the prefixed one.
"""

import Mix.Ecto, only: [build_repo_priv: 1]
import Mix.Ecto, only: [source_repo_priv: 1]
alias Ecto.Adapters.SQL
alias Ecto.Migrator
alias Postgrex.Error, as: PGError
Expand Down Expand Up @@ -197,7 +197,7 @@ defmodule Triplex do
"""
def migrations_path(repo \\ config().repo) do
if repo do
Path.join(build_repo_priv(repo), "tenant_migrations")
Path.join(source_repo_priv(repo), "tenant_migrations")
else
""
end
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Triplex.Mixfile do
def project do
[
app: :triplex,
version: "1.0.0",
version: "1.1.0-rc.0",
elixir: "~> 1.4",

description: description(),
Expand Down Expand Up @@ -48,7 +48,7 @@ defmodule Triplex.Mixfile do
# Type "mix help deps" for more examples and options
defp deps do
[
{:ecto, "~> 2.1"},
{:ecto, "~> 2.2.0-rc"},
{:plug, "~> 1.3.5"},
{:postgrex, ">= 0.11.0"},

Expand Down
4 changes: 2 additions & 2 deletions test/triplex_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule TriplexTest do
use ExUnit.Case

import Mix.Ecto, only: [build_repo_priv: 1]
import Mix.Ecto, only: [source_repo_priv: 1]

alias Triplex.Note
alias Triplex.TestRepo
Expand Down Expand Up @@ -63,7 +63,7 @@ defmodule TriplexTest do
end

test "migrations_path/1 must return the tenant migrations path" do
expected = Path.join(build_repo_priv(@repo), "tenant_migrations")
expected = Path.join(source_repo_priv(@repo), "tenant_migrations")
assert Triplex.migrations_path(@repo) == expected
end

Expand Down

0 comments on commit c5ca99f

Please sign in to comment.