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

20 lines
412 B
Elixir
Raw Normal View History

2023-12-05 22:15:59 +00:00
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