#!/bin/bash

set -ex

git pull
rake db:schema:load
rake db:data:load_dir dir="datadump"

#!/bin/bash

set -ex

git pull
rake db:migrate
rake db:data:load_dir dir="datadump"

Use db:migrate instead of schema
Use db:migrate instead of schema