Sha256: 6c9b40a8d944f7ac26921623e411667197d0e883a52ad9bc889c8f0cd4747aca

Contents?: true

Size: 548 Bytes

Versions: 8

Compression:

Stored size: 548 Bytes

Contents

module Neo4j
  module Migrations
    extend ActiveSupport::Autoload
    autoload :Helpers
    autoload :MigrationFile
    autoload :Base
    autoload :Runner
    autoload :SchemaMigration

    class << self
      def check_for_pending_migrations!
        runner = Neo4j::Migrations::Runner.new
        fail ::Neo4j::PendingMigrationError if runner.pending_migrations?
      end

      attr_accessor :currently_running_migrations

      def maintain_test_schema!
        Neo4j::Migrations::Runner.new(silenced: true).all
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
neo4j-8.0.0.alpha.12 lib/neo4j/migrations.rb
neo4j-8.0.0.alpha.11 lib/neo4j/migrations.rb
neo4j-8.0.0.alpha.10 lib/neo4j/migrations.rb
neo4j-8.0.0.alpha.9 lib/neo4j/migrations.rb
neo4j-8.0.0.alpha.8 lib/neo4j/migrations.rb
neo4j-8.0.0.alpha.7 lib/neo4j/migrations.rb
neo4j-8.0.0.alpha.6 lib/neo4j/migrations.rb
neo4j-8.0.0.alpha.5 lib/neo4j/migrations.rb