Skip to content

Instantly share code, notes, and snippets.

@lee-dohm
Last active August 29, 2015 14:25
Show Gist options
  • Save lee-dohm/f08fe5b93e7ec580b445 to your computer and use it in GitHub Desktop.
Save lee-dohm/f08fe5b93e7ec580b445 to your computer and use it in GitHub Desktop.
Migration error
** (MatchError) no match of right hand side value: %{columns: ["count"], command: :select, num_rows: 1, rows: [[0]]}
(ecto) lib/ecto/adapters/postgres.ex:61: Ecto.Adapters.Postgres.ddl_exists?/3
(ecto) lib/ecto/migration/schema_migration.ex:19: Ecto.Migration.SchemaMigration.ensure_schema_migrations_table!/1
(ecto) lib/ecto/migrator.ex:36: Ecto.Migrator.migrated_versions/1
(ecto) lib/ecto/migrator.ex:134: Ecto.Migrator.run/4
(mix) lib/mix/cli.ex:55: Mix.CLI.run_task/2
defmodule PackageSyncService.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment