Running the migration below is not creating the accounts table in the users schema.
it
- creates a user schema
- creates the accounts table in the default schema.
What am I doing wrong ?
defmodule FishingSpot.Repo.Migrations.AddAccountsTable do
use Ecto.Migration
def change do
execute "CREATE SCHEMA users"
create table(:accounts, prefix: :users) do
add :identifier, :string
add :name, :string
timestamps
end
end
end