lib/neo4j/model_schema.rb in neo4j-9.6.2 vs lib/neo4j/model_schema.rb in neo4j-10.0.0.pre.alpha.1

- old
+ new

@@ -30,21 +30,21 @@ end def model_constraints return @model_constraints if @model_constraints - constraints = Neo4j::ActiveBase.current_session.constraints.each_with_object({}) do |row, result| + constraints = Neo4j::Transaction.constraints.each_with_object({}) do |row, result| result[row[:label]] ||= [] result[row[:label]] << row[:properties] end @model_constraints = schema_elements_list(MODEL_CONSTRAINTS, constraints) end def model_indexes return @model_indexes if @model_indexes - indexes = Neo4j::ActiveBase.current_session.indexes.each_with_object({}) do |row, result| + indexes = Neo4j::Transaction.indexes.each_with_object({}) do |row, result| result[row[:label]] ||= [] result[row[:label]] << row[:properties] end @model_indexes = schema_elements_list(MODEL_INDEXES, indexes) +