module Mongration::Status
@private
Constants
- FileStatus
Public Instance Methods
migrations()
click to toggle source
# File lib/mongration/status.rb, line 9 def migrations performed_migrations + pending_migrations end
Private Instance Methods
pending_migrations()
click to toggle source
# File lib/mongration/status.rb, line 21 def pending_migrations File.pending.map do |file| FileStatus.new('down', file.version, file.name) end end
performed_migrations()
click to toggle source
# File lib/mongration/status.rb, line 15 def performed_migrations File.migrated.map do |file| FileStatus.new('up', file.version, file.name) end end