Sha256: 91366238781a41421c2eed7f06259efd7cc75a0c75730d6a354dfb984539e9f7

Contents?: true

Size: 685 Bytes

Versions: 59

Compression:

Stored size: 685 Bytes

Contents

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

    class << self
      def check_for_pending_migrations!
        return if Neo4j::Config.configuration['skip_migration_check']

        runner = Neo4j::Migrations::Runner.new
        pending = runner.pending_migrations
        fail ::Neo4j::PendingMigrationError, pending if pending.any?
      end

      attr_accessor :currently_running_migrations

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

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
neo4j-9.6.2 lib/neo4j/migrations.rb
activegraph-10.0.0.pre.alpha.11 lib/neo4j/migrations.rb
activegraph-10.0.0.pre.alpha.10 lib/neo4j/migrations.rb
activegraph-10.0.0.pre.alpha.9 lib/neo4j/migrations.rb
activegraph-10.0.0.pre.alpha.8 lib/neo4j/migrations.rb
activegraph-10.0.0.pre.alpha.7 lib/neo4j/migrations.rb
activegraph-10.0.0.pre.alpha.6 lib/neo4j/migrations.rb
neo4j-10.0.0.pre.alpha.5 lib/neo4j/migrations.rb
neo4j-10.0.0.pre.alpha.4 lib/neo4j/migrations.rb
neo4j-10.0.0.pre.alpha.3 lib/neo4j/migrations.rb
neo4j-10.0.0.pre.alpha.2 lib/neo4j/migrations.rb
neo4j-10.0.0.pre.alpha.1 lib/neo4j/migrations.rb
neo4j-9.6.1 lib/neo4j/migrations.rb
neo4j-9.6.0 lib/neo4j/migrations.rb
neo4j-9.5.3 lib/neo4j/migrations.rb
neo4j-9.5.2 lib/neo4j/migrations.rb
neo4j-9.5.0 lib/neo4j/migrations.rb
neo4j-9.4.0 lib/neo4j/migrations.rb
neo4j-9.3.0 lib/neo4j/migrations.rb
neo4j-9.2.4 lib/neo4j/migrations.rb