class Pliny::DbSupport::MigrationStatus
Attributes
filename[R]
present_in_database[RW]
present_on_disk[RW]
Public Class Methods
new(filename:)
click to toggle source
# File lib/pliny/db_support.rb, line 69 def initialize(filename:) @filename = filename @present_on_disk = false @present_in_database = false end
Public Instance Methods
status()
click to toggle source
# File lib/pliny/db_support.rb, line 75 def status if present_on_disk if present_in_database :up else :down end else if present_in_database :file_missing else raise "error" # FIXME: better message end end end