Browse Source

chore: mix format

main
Inhji Y. 7 months ago
parent
commit
a4ed732fab
  1. 6
      priv/repo/migrations/20210215193839_add_domain_to_link.exs
  2. 4
      priv/repo/migrations/20210219221843_add_trigram_extension.exs
  3. 8
      priv/repo/migrations/20210221112501_add_views_and_last_viewed_to_notes.exs

6
priv/repo/migrations/20210215193839_add_domain_to_link.exs

@ -2,8 +2,8 @@ defmodule Mirage.Repo.Migrations.AddDomainToLink do
use Ecto.Migration
def change do
alter table(:links) do
add :domain, :string
end
alter table(:links) do
add :domain, :string
end
end
end

4
priv/repo/migrations/20210219221843_add_trigram_extension.exs

@ -2,10 +2,10 @@ defmodule Mirage.Repo.Migrations.AddTrigramExtension do
use Ecto.Migration
def up do
repo().query!("CREATE EXTENSION IF NOT EXISTS pg_trgm;")
repo().query!("CREATE EXTENSION IF NOT EXISTS pg_trgm;")
end
def down do
repo().query!("DROP EXTENSION IF EXISTS pg_trgm;")
repo().query!("DROP EXTENSION IF EXISTS pg_trgm;")
end
end

8
priv/repo/migrations/20210221112501_add_views_and_last_viewed_to_notes.exs

@ -2,9 +2,9 @@ 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
alter table(:notes) do
add :views, :integer, default: 0
add :viewed_at, :naive_datetime
end
end
end

Loading…
Cancel
Save