You can add another line to the ``before script`` to do the migration ``bundle exec rake db:migrate``. The script is intended to execute the tests.