Skip to content
This repository
Browse code

message on no migrations

  • Loading branch information...
commit cccc0013e1243ab180ac26bc9f21f06297c9b8bf 1 parent 26092d6
TJ Holowaychuk authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 bin/migrate
8 bin/migrate
@@ -131,7 +131,13 @@ var config = loadConfig();
131 131
132 132 var commands = {
133 133 up: function(){
134   -
  134 + // no migrations
  135 + if (-1 == config.prev) abort('add migrations before running $ migrate up');
  136 + },
  137 +
  138 + down: function(){
  139 + // no migrations
  140 + if (-1 == config.prev) abort('add migrations before running $ migrate down');
135 141 },
136 142
137 143 create: function(){

0 comments on commit cccc001

Please sign in to comment.
Something went wrong with that request. Please try again.