mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-25 09:20:59 +00:00
13 lines
296 B
Elixir
13 lines
296 B
Elixir
defmodule LiveBeats.Repo.Migrations.CreateGenres do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:genres) do
|
|
add :title, :text, null: false
|
|
add :slug, :text, null: false
|
|
end
|
|
|
|
create unique_index(:genres, [:title])
|
|
create unique_index(:genres, [:slug])
|
|
end
|
|
end
|