Module: ActualDbSchema::Patches::Migrator

Defined in:
lib/actual_db_schema/patches/migrator.rb

Overview

Run only one migration that’s being rolled back

Instance Method Summary collapse

Instance Method Details

#runnableObject



7
8
9
10
# File 'lib/actual_db_schema/patches/migrator.rb', line 7

def runnable
  migration = migrations.first # there is only one migration, because we pass only one here
  ran?(migration) ? [migration] : []
end