mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-04-28 15:28:44 +00:00
21 lines
499 B
Elixir
21 lines
499 B
Elixir
defmodule Rauversion.Repo.Migrations.CreateTracks do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:tracks) do
|
|
add(:title, :string)
|
|
add(:description, :text)
|
|
add(:private, :boolean, default: false, null: false)
|
|
add(:slug, :string)
|
|
add(:caption, :text)
|
|
add(:notification_settings, :map)
|
|
add(:metadata, :map)
|
|
add(:user_id, RauversionExtension.user_table_reference())
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create(index(:tracks, [:user_id]))
|
|
end
|
|
end
|