docker部署整理 ssl禁用
This commit is contained in:
parent
9d5609e544
commit
3646822ec3
|
@ -7,7 +7,7 @@ namespace :sync_table_structure do
|
|||
database_config = Rails.configuration.database_configuration
|
||||
|
||||
table_count = ActiveRecord::Base.connection.query_value("SELECT count(*) FROM information_schema.`TABLES` where TABLE_SCHEMA='#{database_config[Rails.env]["database"]}'")
|
||||
return if table_count.to_i > 10
|
||||
next if table_count.to_i > 10
|
||||
|
||||
database = database_config[Rails.env]["database"]
|
||||
database_username = database_config[Rails.env]["username"]
|
||||
|
|
Loading…
Reference in New Issue