Sha256: 87ae192883c3b6b9e5f610c827bf67ac001ddeecedd9fd37a5ee12ad34f55060

Contents?: true

Size: 614 Bytes

Versions: 19

Compression:

Stored size: 614 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!
        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

19 entries across 19 versions & 1 rubygems

Version Path
neo4j-8.0.18 lib/neo4j/migrations.rb
neo4j-8.0.17 lib/neo4j/migrations.rb
neo4j-8.0.16 lib/neo4j/migrations.rb
neo4j-8.0.15 lib/neo4j/migrations.rb
neo4j-8.0.13 lib/neo4j/migrations.rb
neo4j-8.0.12 lib/neo4j/migrations.rb
neo4j-8.0.11 lib/neo4j/migrations.rb
neo4j-8.0.10 lib/neo4j/migrations.rb
neo4j-8.0.9 lib/neo4j/migrations.rb
neo4j-8.0.8 lib/neo4j/migrations.rb
neo4j-8.0.7 lib/neo4j/migrations.rb
neo4j-8.0.6 lib/neo4j/migrations.rb
neo4j-8.0.5 lib/neo4j/migrations.rb
neo4j-8.0.4 lib/neo4j/migrations.rb
neo4j-8.0.3 lib/neo4j/migrations.rb
neo4j-8.0.2 lib/neo4j/migrations.rb
neo4j-8.0.1 lib/neo4j/migrations.rb
neo4j-8.0.0 lib/neo4j/migrations.rb
neo4j-8.0.0.rc.4 lib/neo4j/migrations.rb