My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
225 B

defmodule Mirage.Repo.Migrations.AddViewsAndLastViewedToNotes do
use Ecto.Migration
def change do
alter table(:notes) do
add :views, :integer, default: 0
add :viewed_at, :naive_datetime
end
end
end