mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Fix the build.
6edf285c893fdca4584e73a7274febcd586c665b
This commit is contained in:
parent
6edf285c89
commit
234e0f35c5
@ -1,5 +1,6 @@
|
||||
# Some sanity checking so we don't count on an unindexed column on boot
|
||||
if ActiveRecord::Base.connection.table_exists?(:users) &&
|
||||
begin
|
||||
if ActiveRecord::Base.connection.table_exists?(:users) &&
|
||||
User.limit(20).count < 20 &&
|
||||
User.where(admin: true).human_users.count == 0
|
||||
|
||||
@ -20,4 +21,7 @@ if ActiveRecord::Base.connection.table_exists?(:users) &&
|
||||
SiteSetting.global_notice = notice
|
||||
SiteSetting.has_login_hint = true
|
||||
end
|
||||
end
|
||||
rescue ActiveRecord::NoDatabaseError
|
||||
# Database might not have been created
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user