lib/neo4j/railtie.rb in neo4j-8.0.18 vs lib/neo4j/railtie.rb in neo4j-8.1.0.rc.1
- old
+ new
@@ -41,9 +41,11 @@
end
# Starting Neo after :load_config_initializers allows apps to
# register migrations in config/initializers
initializer 'neo4j.start', after: :load_config_initializers do |app|
+ app.config.neo4j.skip_migration_check = true if Rails.env.test?
+
neo4j_config = ActiveSupport::OrderedOptions.new
app.config.neo4j.each { |k, v| neo4j_config[k] = v } if app.config.neo4j
Neo4j::Config.configuration.merge!(neo4j_config.to_h)