Skip to content

Instantly share code, notes, and snippets.

# First of all, ensure farming-consumers is up and running
ct_attributes = FactoryBot.build(:es_concept_type).attributes
# in Staging you might need to do this before call Create service:
# transactions (sta):009> ct_attributes["uuid"] = SecureRandom.uuid
ES::ConceptTypes::Create.new(attributes: ct_attributes).call
# check concept type created consumer in Farming (devkit logs farming-consumers)
ct = ES::ConceptType.last