Rails

Reset user’s password

launch rails console.

user = User.find(1) # or something to get one user
user.unlock_access!

Generate

Migration

If you add owner_id column to users table:

rails g migration AddOwnerIdToUsers

Migration

bundle exec rake db:migrate:status