lib/rack/ecg/check/migration_version.rb in rack-ecg-0.0.5 vs lib/rack/ecg/check/migration_version.rb in rack-ecg-0.1.0
- old
+ new
@@ -1,8 +1,12 @@
+# frozen_string_literal: true
module Rack
class ECG
module Check
+ # @!method initialize
+ # Returns the latest applied ActiveRecord migration in the default
+ # database.
class MigrationVersion
def result
value = ""
status = Status::OK
begin
@@ -21,9 +25,8 @@
Result.new(:migration_version, status, value)
end
end
CheckRegistry.instance.register(:migration_version, MigrationVersion)
-
end
end
end