mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Added rake db:all:drop rake tasks and check init_settings
This commit is contained in:
parent
62d76cee00
commit
0e13a1026e
2 changed files with 48 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
if ActiveRecord::Base.connection.table_exists? 'settings' # otherwise rake not working 100%
|
||||
if ActiveRecord::Base.connected? && ActiveRecord::Base.connection.table_exists?('settings') # otherwise rake not working 100%
|
||||
Setting.disclosure_name = true if Setting.disclosure_name.nil?
|
||||
Setting.disclosure_name = true if Setting.disclosure_name.nil?
|
||||
Setting.disclosure_org_name = true if Setting.disclosure_org_name.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue