Some fast dirty fixes in migration. In the future needs to set up migration using pure sql. Added database.yml.example