mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28: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%
|
# otherwise rake not working 100%
|
||||||
begin
|
begin
|
||||||
con = ActiveRecord::Base.connection
|
con = ActiveRecord::Base.connection
|
||||||
rescue ActiveRecord::NoDatabaseError
|
rescue ActiveRecord::NoDatabaseError => e
|
||||||
# for running rake tasks, no output
|
logger.info "Init settings didn't find database: #{e}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if con.present? && con.table_exists?('settings')
|
if con.present? && con.table_exists?('settings')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue