How do I activate all inactive members at the click of a button?

You can search here for something like “rails update users” and get some examples. Something like

 User.all.update_all(active: true) 

You should not do that without a bit more research and taking a backup. It might kill your dog.