lib/active_graph/migrations/schema.rb in activegraph-10.0.0.pre.beta.6 vs lib/active_graph/migrations/schema.rb in activegraph-10.0.0.pre.beta.7

- old
+ new

@@ -32,22 +32,22 @@ end def v3_indexes(result) result.reject do |row| # These indexes are created automagically when the corresponding constraints are created - row.type == 'node_unique_property' - end.map(&:description) + row[:type] == 'node_unique_property' + end.map { |row| row[:description] } end def v4_indexes(result) result.reject do |row| # These indexes are created automagically when the corresponding constraints are created - row.uniqueness == 'UNIQUE' + row[:uniqueness] == 'UNIQUE' end.map(&method(:description)) end def description(row) - "INDEX FOR (n:#{row.labelsOrTypes.first}) ON (#{row.properties.map{|prop| "n.#{prop}"}.join(', ')})" + "INDEX FOR (n:#{row[:labelsOrTypes].first}) ON (#{row[:properties].map { |prop| "n.#{prop}" }.join(', ')})" end def drop_and_create_queries(existing, specified, remove_missing) [].tap do |queries| if remove_missing