Set default homepage for all users

rails c
UserOption.update_all(homepage_id:2)

Multisite:

RAILS_DB=multisite_db_name rails c
UserOption.update_all(homepage_id:2)

for all IDs see discourse user_option.rb at main · discourse discourse · GitHub)