14 lines
316 B
Elixir
14 lines
316 B
Elixir
|
|
defmodule MyFirstElixirVibeCode.Repo.Migrations.AddClientInfoToReviews do
|
||
|
|
use Ecto.Migration
|
||
|
|
|
||
|
|
def change do
|
||
|
|
alter table(:reviews) do
|
||
|
|
add :client_name, :string
|
||
|
|
add :client_address, :string
|
||
|
|
end
|
||
|
|
|
||
|
|
create index(:reviews, [:client_name])
|
||
|
|
create index(:reviews, [:client_address])
|
||
|
|
end
|
||
|
|
end
|