removing 'properties' from boilerplate
This commit is contained in:
parent
82ab1d1ea5
commit
3a9f00b14e
16 changed files with 16 additions and 2058 deletions
priv/repo/migrations
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue