docker部署整理 ssl禁用

This commit is contained in:
xxqfamous 2023-05-25 18:35:19 +08:00
parent 9d5609e544
commit 3646822ec3
1 changed files with 1 additions and 1 deletions

View File

@ -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"]