From eaa87b510dd565783e044d75613df393970f436d Mon Sep 17 00:00:00 2001 From: Robert Francis Date: Fri, 1 Mar 2019 15:04:10 +0000 Subject: [PATCH] Adds timestamps to migration file. (leaves timestamps out of schema on purpose) #45 --- .../test_app/migrations/20190301105228_create_comments.exs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/priv/repo/test_app/migrations/20190301105228_create_comments.exs b/priv/repo/test_app/migrations/20190301105228_create_comments.exs index e0b3ccf..92a6810 100644 --- a/priv/repo/test_app/migrations/20190301105228_create_comments.exs +++ b/priv/repo/test_app/migrations/20190301105228_create_comments.exs @@ -4,10 +4,13 @@ defmodule Alog.Repo.Migrations.CreateComments do def change do create table(:comments, primary_key: false) do # cid & entry_id need to be removed later as they should be handled in execute_ddl I believe + # timestamps are needed in alog but may or may not be in the schema. add(:cid, :string, primary_key: true) add(:entry_id, :string) add(:comment, :string) add(:deleted, :boolean, default: false) + + timestamps() end end end