Skip to content

Commit

Permalink
remove postgres and ecto from dependencies, #168
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonLab committed Feb 15, 2018
1 parent 335638b commit 2c3b519
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 40 deletions.
2 changes: 0 additions & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
use Mix.Config

# General application configuration
config :dwylbot,
ecto_repos: [Dwylbot.Repo]

# Configures the endpoint
config :dwylbot, DwylbotWeb.Endpoint,
Expand Down
20 changes: 0 additions & 20 deletions lib/dwylbot_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,9 @@ defmodule DwylbotWeb do
Do NOT define functions inside the quoted expressions
below.
"""

def model do
quote do
use Ecto.Schema

import Ecto
import Ecto.Changeset
import Ecto.Query
end
end

def controller do
quote do
use Phoenix.Controller, namespace: DwylbotWeb

alias Dwylbot.Repo
import Ecto
import Ecto.Query

import DwylbotWeb.Router.Helpers
import DwylbotWeb.Gettext
end
Expand Down Expand Up @@ -69,10 +53,6 @@ defmodule DwylbotWeb do
def channel do
quote do
use Phoenix.Channel

alias Dwylbot.Repo
import Ecto
import Ecto.Query
import DwylbotWeb.Gettext
end
end
Expand Down
8 changes: 2 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule Dwylbot.Mixfile do
def application do
[mod: {Dwylbot.Application, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex, :httpoison, :joken, :jose]]
:httpoison, :joken, :jose]]
end

# Specifies which paths to compile per environment.
Expand All @@ -34,8 +34,6 @@ defmodule Dwylbot.Mixfile do
defp deps do
[{:phoenix, "~> 1.3.0"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.2"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.10"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
Expand All @@ -55,8 +53,6 @@ defmodule Dwylbot.Mixfile do
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"test": ["ecto.create --quiet", "ecto.migrate", "test"]]
[]
end
end
7 changes: 0 additions & 7 deletions priv/repo/migrations/20170307213737_start.exs

This file was deleted.

5 changes: 0 additions & 5 deletions test/support/channel_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ defmodule DwylbotWeb.ChannelCase do
# Import conveniences for testing with channels
use Phoenix.ChannelTest

alias Dwylbot.Repo
import Ecto
import Ecto.Changeset
import Ecto.Query


# The default endpoint for testing
@endpoint DwylbotWeb.Endpoint
Expand Down

0 comments on commit 2c3b519

Please sign in to comment.