module ActiveGraph::Migrations

Attributes

currently_running_migrations[RW]

Public Class Methods

check_for_pending_migrations!() click to toggle source
   # File lib/active_graph/migrations.rb
12 def check_for_pending_migrations!
13   return if ActiveGraph::Config.configuration['skip_migration_check']
14 
15   runner = ActiveGraph::Migrations::Runner.new
16   pending = runner.pending_migrations
17   fail ::ActiveGraph::PendingMigrationError, pending if pending.any?
18 end
maintain_test_schema!() click to toggle source
   # File lib/active_graph/migrations.rb
22 def maintain_test_schema!
23   ActiveGraph::Migrations::Runner.new(silenced: true).all
24 end