title: Validate list of columns for a similar condition
body: <p>I am trying to validate this list of columns for the presence. So I wrote this code. It's works but can we create an array of columns for this?
  Example that I wrote:</p>
  
  <pre><code>class UserAccount &lt; ApplicationRecord
  
    self.table_name = 'accounts'
  
    belongs_to :user
  
    with_options unless: :new_record? do
      validates :address, presence: { message: 'This field is required' }
      validates :street, presence: { message: 'This field is required' }
      validates :house_number, presence: { message: 'This field is required' }
      validates :zip_code, presence: { message: 'This field is required' }
      validates :city, presence: { message: 'This field is required' }
      validates :country, presence: { message: 'This field is required' }
    end
  
  end
  </code></pre>
  
  <p>Array of columns to iterate on:</p>
  
  <pre><code>REQUIRED_COLUMNS = %w[address street house_number zip_code city country]
  </code></pre>