method
runnable
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Migrator
runnable()public
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 1154
def runnable
runnable = migrations[start..finish]
if up?
runnable.reject { |m| ran?(m) }
else
# skip the last migration if we're headed down, but not ALL the way down
runnable.pop if target
runnable.find_all { |m| ran?(m) }
end
end