ActiveRecord::RecordNotSaved: You cannot call create unless the parent is saved
https://sentry.gitlab.net/gitlab/gitlabcom/issues/562311/
ActiveRecord::RecordNotSaved: You cannot call create unless the parent is saved
active_record/associations/collection_association.rb:497:in `_create_record'
raise ActiveRecord::RecordNotSaved, "You cannot call create unless the parent is saved"
active_record/associations/has_many_association.rb:187:in `_create_record'
update_counter_if_success(super, 1)
active_record/associations/collection_association.rb:168:in `create!'
_create_record(attributes, true, &block)
active_record/associations/collection_proxy.rb:306:in `create!'
@association.create!(attributes, &block)
deployable.rb:16:in `create_deployment'
create_deployment!(
...
(299 additional frame(s) were not displayed)
ActiveRecord::RecordNotSaved: You cannot call create unless the parent is saved