BFX462heo
02/17/2023, 10:50 AMZyad A
02/17/2023, 11:15 AMSpree::User.first
I imagine railway.app has a similar console functionality and so the same process may work for youBFX462heo
02/17/2023, 11:21 AMZyad A
02/17/2023, 11:34 AMBFX462heo
02/17/2023, 11:49 AMZyad A
02/17/2023, 12:18 PMkennyadsl
bin/rails spree_auth:admin:create
should do the trick. Under the hood, it is executing this file, if you want to take inspiration about how to make a user admin programmatically.
Let me know if this helps!BFX462heo
02/18/2023, 8:43 AMusers.rb
that you have sent me I have found this...BFX462heo
02/18/2023, 8:45 AMBFX462heo
02/18/2023, 8:49 AMBFX462heo
02/18/2023, 8:51 AM