Sha256: 960ce8b06652409f06c4dac63c09d3bd46b8cbedd21dfd874363b4fabe6f69ca

Contents?: true

Size: 1.42 KB

Versions: 26

Compression:

Stored size: 1.42 KB

Contents

module Neo4j

  class << self
    extend Forwardable

    ##
    # Returns the current version of the database.
    # This version has been set by running one or more migrations.
    # The version is stored on the reference node, with property 'db_version'
    # (It Delegates to the Reference Node)
    #
    # ==== See Also
    # Neo4j::Migrations::RefNodeWrapper#db_version
    #
    # :singleton-method: db_version

    ##
    # Force Neo4j.rb to perform migrations
    #
    # ==== See Also
    #
    # Neo4j::Migrations::RefNodeWrapper#migrate!
    #
    # :singleton-method: migrate!

    ##
    # Specifies a single migration.
    # The up and down methods are automatically wrapped in a transaction.
    #
    # === Example
    #
    #   Neo4j.migration 1, :create_articles do
    #    up do
    #      Neo4j.ref_node.rels.outgoing(:colours) << Neo4j.Node.new(:colour => 'red')  << Neo4j.Node.new(:colour => 'blue')
    #    end
    #    down do
    #      Neo4j.ref_node.rels.outgoing(:colours).each {|n| n.del }
    #    end
    #  end
    #
    # ==== See Also
    # Neo4j::Migrations::ClassMethods#migration
    #
    # :singleton-method: migration

    ##
    # Returns all migrations that has been defined.
    #
    # ==== See Also
    # Neo4j::Migrations::ClassMethods#migrations
    #
    # :singleton-method: migrations


    def_delegators :'Neo4j::Migrations::RefNodeWrapper', :db_version, :migrate!, :migrations, :migration

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
neo4j-2.0.0.alpha.5-java lib/neo4j/migrations/extensions.rb
neo4j-2.0.0.alpha.4-java lib/neo4j/migrations/extensions.rb
neo4j-2.0.0.alpha.3-java lib/neo4j/migrations/extensions.rb
neo4j-1.3.1-java lib/neo4j/migrations/extensions.rb
neo4j-1.3.0-java lib/neo4j/migrations/extensions.rb
neo4j-1.2.6-java lib/neo4j/migrations/extensions.rb
neo4j-1.2.5-java lib/neo4j/migrations/extensions.rb
neo4j-1.2.4-java lib/neo4j/migrations/extensions.rb
neo4j-1.2.3-java lib/neo4j/migrations/extensions.rb
neo4j-1.2.2-java lib/neo4j/migrations/extensions.rb
neo4j-1.2.1-java lib/neo4j/migrations/extensions.rb
neo4j-1.2.0-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.4-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.3-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.2-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.1-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.0-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.0.beta.3-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.0.beta.2-java lib/neo4j/migrations/extensions.rb
neo4j-1.1.0.beta.1-java lib/neo4j/migrations/extensions.rb