defmodule Tilex.Repo.Migrations.AddPublishedAtToPosts do
  use Ecto.Migration

  def change do
    alter table(:posts) do
      add :published_at, :timestamptz, null: false, default: fragment("now()")
    end
  end
end

Add a published at time to post
Add a published at time to post

https://github.com/hashrocket/tilex/projects/1#card-1266821

hashrocket/tilex,hashrocket/tilex,hashrocket/tilex