All modules, configs, paths, and references updated. 836 tests pass, zero warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
425 B
Elixir
17 lines
425 B
Elixir
defmodule Berrypod.Repo.Migrations.CreateSettings do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:settings, primary_key: false) do
|
|
add :id, :binary_id, primary_key: true
|
|
add :key, :string, null: false
|
|
add :value, :text, null: false
|
|
add :value_type, :string, null: false, default: "string"
|
|
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
|
|
create unique_index(:settings, [:key])
|
|
end
|
|
end
|