about summary refs log tree commit diff
path: root/app/lib/admin/system_check/database_schema_check.rb
blob: b93d1954eb0b6007b0d8ccf6b3c35a2c2747a7f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class Admin::SystemCheck::DatabaseSchemaCheck < Admin::SystemCheck::BaseCheck
  def pass?
    !ActiveRecord::Base.connection.migration_context.needs_migration?
  end

  def message
    Admin::SystemCheck::Message.new(:database_schema_check)
  end
end