This commit is contained in:
		@@ -10,7 +10,7 @@ defmodule Cannery.Repo.Migrations.CreateUsersAuthTables do
 | 
			
		||||
      add :hashed_password, :string, null: false
 | 
			
		||||
      add :confirmed_at, :naive_datetime
 | 
			
		||||
      add :role, :string
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    create unique_index(:users, [:email])
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ defmodule Cannery.Repo.Migrations.CreateTags do
 | 
			
		||||
 | 
			
		||||
      add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    create index(:tags, [:user_id])
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ defmodule Cannery.Repo.Migrations.CreateAmmoTypes do
 | 
			
		||||
 | 
			
		||||
      add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ defmodule Cannery.Repo.Migrations.CreateContainers do
 | 
			
		||||
 | 
			
		||||
      add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    create index(:containers, [:user_id])
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ defmodule Cannery.Repo.Migrations.CreateAmmoGroups do
 | 
			
		||||
      add :container_id, references(:containers, on_delete: :nothing, type: :binary_id)
 | 
			
		||||
      add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    create index(:ammo_groups, [:ammo_type_id])
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ defmodule Cannery.Repo.Migrations.CreateInvites do
 | 
			
		||||
 | 
			
		||||
      add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    create index(:invites, [:user_id])
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ defmodule Cannery.Repo.Migrations.CreateContainerTags do
 | 
			
		||||
      add :container_id, references(:containers, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
      add :tag_id, references(:tags, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    create index(:container_tags, [:container_id])
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ defmodule Cannery.Repo.Migrations.CreateShotGroups do
 | 
			
		||||
      add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
      add :ammo_group_id, references(:ammo_groups, on_delete: :delete_all, type: :binary_id)
 | 
			
		||||
 | 
			
		||||
      timestamps(type: :naive_datetime)
 | 
			
		||||
      timestamps()
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    create index(:shot_groups, [:id])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user