mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Added loggen info if init settings does not find database
This commit is contained in:
parent
cb3b2e39fc
commit
eb3a0dd629
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
# otherwise rake not working 100%
|
||||
begin
|
||||
con = ActiveRecord::Base.connection
|
||||
rescue ActiveRecord::NoDatabaseError
|
||||
# for running rake tasks, no output
|
||||
rescue ActiveRecord::NoDatabaseError => e
|
||||
logger.info "Init settings didn't find database: #{e}"
|
||||
end
|
||||
|
||||
if con.present? && con.table_exists?('settings')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue