Skip to content

Commit

Permalink
Adds timestamps to migration file. (leaves timestamps out of schema o…
Browse files Browse the repository at this point in the history
…n purpose) #45
  • Loading branch information
RobStallion committed Mar 1, 2019
1 parent ad66390 commit eaa87b5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eaa87b5

Please sign in to comment.