removing 'properties' from boilerplate

This commit is contained in:
Adam Piontek 2021-03-05 22:35:17 -05:00
commit 3a9f00b14e
16 changed files with 16 additions and 2058 deletions

View file

@ -1,17 +0,0 @@
defmodule Shift73k.Repo.Migrations.CreateProperties do
use Ecto.Migration
def change do
create table(:properties, primary_key: false) do
add(:id, :binary_id, primary_key: true)
add(:name, :string)
add(:price, :decimal)
add(:description, :text)
add(:user_id, references(:users, type: :binary_id, on_delete: :delete_all), null: false)
timestamps()
end
create(index(:properties, [:user_id]))
end
end