server/priv/repo/migrations/20231205220353_create_langu...

20 lines
412 B
Elixir
Raw Normal View History

defmodule BoardWise.Repo.Migrations.CreateLanguages do
use Ecto.Migration
@prefix "coach_scraper"
def change do
create table(:languages, prefix: @prefix) do
add :code, :string, null: false
add :name, :string, null: false
end
create unique_index(
:languages,
[:code],
prefix: @prefix,
name: "code_unique"
)
end
end