lib/rails/generators/neo4j/model/model_generator.rb in neo4j-4.1.5 vs lib/rails/generators/neo4j/model/model_generator.rb in neo4j-5.0.0.rc.1

- old
+ new

@@ -60,12 +60,12 @@ options[:indices] end def index_fragment(property) - if options[:indices] && options[:indices].include?(property) - "index :#{property}" - end + return if !options[:indices] || !options[:indices].include?(property) + + "index :#{property}" end def parent? options[:parent] end