parent
6edf285c89
commit
234e0f35c5
|
@ -1,4 +1,5 @@
|
|||
# Some sanity checking so we don't count on an unindexed column on boot
|
||||
begin
|
||||
if ActiveRecord::Base.connection.table_exists?(:users) &&
|
||||
User.limit(20).count < 20 &&
|
||||
User.where(admin: true).human_users.count == 0
|
||||
|
@ -21,3 +22,6 @@ if ActiveRecord::Base.connection.table_exists?(:users) &&
|
|||
SiteSetting.has_login_hint = true
|
||||
end
|
||||
end
|
||||
rescue ActiveRecord::NoDatabaseError
|
||||
# Database might not have been created
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue