Skip to content

Commit f882429

Browse files
authored
Extend spec of Migrator.migrations/3 (#382)
1 parent 67d57eb commit f882429

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/ecto/migrator.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ defmodule Ecto.Migrator do
459459
Returns an array of tuples as the migration status of the given repo,
460460
without actually running any migrations.
461461
"""
462-
@spec migrations(Ecto.Repo.t, [String.t], Keyword.t) :: [{:up | :down, id :: integer(), name :: String.t}]
462+
@spec migrations(Ecto.Repo.t, String.t | [String.t], Keyword.t) ::
463+
[{:up | :down, id :: integer(), name :: String.t}]
463464
def migrations(repo, directories, opts \\ []) do
464465
directories = List.wrap(directories)
465466

0 commit comments

Comments
 (0)