Rename migration, add constraints, migrate to postgres and config travis