Use Rails' name for inserted_at column for all models

This commit is contained in:
Marcin Kulik 2016-11-11 18:22:31 +01:00
parent 8c68876d7d
commit acdbf453d5

View File

@ -19,6 +19,7 @@ defmodule Asciinema.Web do
def model do
quote do
use Ecto.Schema
@timestamps_opts inserted_at: :created_at
import Ecto
import Ecto.Changeset