Fix tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-11-12 23:36:51 +01:00
parent bdc16bad6b
commit e32ce85f0f
2 changed files with 5 additions and 5 deletions

View File

@@ -1,15 +1,15 @@
defmodule Mobilizon.Repo.Migrations.AlterEventTimestampsToDateTimeWithTimeZone do
defmodule Mobilizon.Repo.Migrations.RevertAlterEventTimestampsToDateTimeWithTimeZone do
use Ecto.Migration
def up do
alter table("events") do
alter table(:events) do
modify :inserted_at, :timestamptz
modify :updated_at, :timestamptz
end
end
def down do
alter table("events") do
alter table(:events) do
modify :inserted_at, :utc_datetime
modify :updated_at, :utc_datetime
end