Run database migrations and update Gemfile.lock.