title: Update email domain in rails migration
body: <p>I am new to Rails, I need to identify a way by which I can update domain of email for all records in the User table.</p>
  <p>For instance User table has email column which has @xyz.com domain for all the records in User table. I want to change this domain to a new domain .i.e. @abc.com</p>
  <p>I have seen different answers which are using</p>
  <pre><code>User.update_all(some_column: &quot;bar&quot;)
  </code></pre>
  <p>But it will not work for me. Can anyone please guide me on this. Thanks</p>