lib/neo4j/model_schema.rb in neo4j-8.0.0.alpha.10 vs lib/neo4j/model_schema.rb in neo4j-8.0.0.alpha.11
- old
+ new
@@ -78,9 +78,10 @@
@previously_loaded_models_count = Neo4j::ActiveNode.loaded_classes.size
@model_indexes = @model_constraints = nil
end
def legacy_model_schema_informations
+ ensure_model_data_state!
data = {index: [], constraint: []}
each_schema_element do |type, model, label, property_name|
data[type] << {label: label, property_name: property_name, model: model}
end
data