Add release_id relation to the db earlier to allow migrating an existing redmine installation. See #908