Project

General

Profile

Actions

Bug #27500

closed

rake db:migrate fails on missing relation when registering fields from plugins

Added by Ondřej Pražák over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Steps to reproduce:

1) have a foreman where db:create and db:migrate was already executed
2) add a plugin registering graphql fields with plugin dsl, bundle
3) run db:migrate

The cause is that `field` methods are called within the type class immediately when the class constant is used, so we need to use strings for registration and constantize later.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #27190: graphql: add plugin DSL for registering plugin fieldsClosedOndřej PražákActions
Actions

Also available in: Atom PDF