mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
docker部署整理 ssl禁用
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user