mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-04-28 23:38:44 +00:00
18 lines
382 B
Elixir
18 lines
382 B
Elixir
defmodule Rauversion.Repo.Migrations.CreatePlaylists do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:playlists) do
|
|
add(:slug, :string)
|
|
add(:description, :text)
|
|
add(:title, :string)
|
|
add(:metadata, :map)
|
|
add(:user_id, RauversionExtension.user_table_reference())
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create(index(:playlists, [:user_id]))
|
|
end
|
|
end
|