Skip to content

Commit

Permalink
[#63] Removed halt/1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfacorro committed Sep 17, 2014
1 parent 03c1b50 commit 88fd15b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sumo.erl
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,9 @@ new_field(Name, Type) ->
%% @doc Runs all migrations to get the DB up to date.
-spec migrate() -> ok | {error, term()}.
migrate() ->
sumo_migration:migrate(),
halt(0).
sumo_migration:migrate().

%% @doc Rolls back the last migration and downgrades the DB version.
-spec rollback() -> ok | {error, term()}.
rollback() ->
sumo_migration:rollback(),
halt(0).
sumo_migration:rollback().

0 comments on commit 88fd15b

Please sign in to comment.