Class: Para::PostgresExtensionsChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/para/postgres_extensions_checker.rb

Class Method Summary collapse

Class Method Details

.check_allObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/para/postgres_extensions_checker.rb', line 4

def check_all
  Para::LogConfig.with_log_level(:fatal) do
    %w(hstore unaccent).each do |extname|
      unless extension_exists?(extname)
        # Could not use Rails.logger here, using puts as a temporary
        # solution.
        puts "[Warning] PostgreSQL \"#{ extname }\" extension is not " +
             "installed in your database. This means that you " +
             "missing some migrations that you can install " +
             "with the following command : " +
             "`rake para_engine:install:migrations` and then migrate."
      end
    end
  end
end