           echo "Please edit created script files and add them to your repository."
         fi
 
+      elif [ "$1" == "migrate" ]; then
+        check_psql
+
+        if [ "$2" == "" ]; then
+          echo "Please choose a migrate command [up|down|version|reset|redo|to]"
+        else
+          cd "#{GOPATH}/src/socialapi"
+          make install-migrate
+          migrate $2 $3
+        fi
+
+
       elif [ "$#" == "0" ]; then
 
         checkrunfile

        echo "  run supervisor [env]      : to show status of workers in that environment"
        echo "  run help                  : to show this list"
        echo "  run migrationfile         : to create an empty postgresql migration file"
        echo ""

      }

      function check (){

        make configure
        cd #{projectRoot}

        migrate up

        nginxrun

