Sha256: 84eb95d71745196d4d9072ad450adeb8f4c1a768834dc5957b471d0c1ac1f549

Contents?: true

Size: 715 Bytes

Versions: 34

Compression:

Stored size: 715 Bytes

Contents

module ActiveGraph
  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 ActiveGraph::Config.configuration['skip_migration_check']

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

      attr_accessor :currently_running_migrations

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
activegraph-11.4.0 lib/active_graph/migrations.rb
activegraph-11.3.1 lib/active_graph/migrations.rb
activegraph-11.3.0 lib/active_graph/migrations.rb
activegraph-11.2.0 lib/active_graph/migrations.rb
activegraph-11.1.0 lib/active_graph/migrations.rb
activegraph-11.1.0.beta.1 lib/active_graph/migrations.rb
activegraph-11.1.0.alpha.4 lib/active_graph/migrations.rb
activegraph-11.1.0.alpha.3 lib/active_graph/migrations.rb
activegraph-11.1.0.alpha.2 lib/active_graph/migrations.rb
activegraph-11.1.0.alpha.1 lib/active_graph/migrations.rb
activegraph-10.2.0.beta.1 lib/active_graph/migrations.rb
activegraph-11.0.2-java lib/active_graph/migrations.rb
activegraph-10.1.1 lib/active_graph/migrations.rb
activegraph-11.0.1-java lib/active_graph/migrations.rb
activegraph-11.0.0-java lib/active_graph/migrations.rb
activegraph-10.1.0 lib/active_graph/migrations.rb
activegraph-11.0.0.beta.4-java lib/active_graph/migrations.rb
activegraph-10.0.2 lib/active_graph/migrations.rb
activegraph-11.0.0.beta.3-java lib/active_graph/migrations.rb
activegraph-11.0.0.beta.2-java lib/active_graph/migrations.rb