bborn / lewsnetter

E-mail marketing application (create and send e-mail newsletter via SES). Includes subscription management, delivery, bounce and complaint notification, templates, and some stats.
MIT License
318 stars 42 forks source link

How to update user #9

Closed vinhlh closed 8 years ago

vinhlh commented 8 years ago

Using the console, turn that account into an admin user (user.update(is_admin:true, approved: true))

How to access this console?

vinhlh commented 8 years ago

❯❯❯ heroku run --app APP_NAME console user = User.where(id: 1) user.update_all(approved: 1)