Add docker-compose dev

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-07-25 16:42:04 +02:00
parent bb1cdc2043
commit c4cfb081e7
8 changed files with 108 additions and 16 deletions

View File

@@ -2,15 +2,18 @@ defmodule Eventos.Repo.Migrations.Prerequites do
use Ecto.Migration
def up do
execute """
execute("""
CREATE TYPE datetimetz AS (
dt timestamptz,
tz varchar
);
"""
""")
execute("CREATE EXTENSION IF NOT EXISTS postgis")
end
def down do
execute "DROP TYPE IF EXISTS datetimetz;"
execute("DROP TYPE IF EXISTS datetimetz;")
execute("DROP EXTENSION IF EXISTS postgis")
end
end