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