title: Skip validation for related objects - rails activerecord
body: <pre><code>class Author
    has_many :books
  
    validates :email, :presence =&gt; true
  end
  
  class Book
    belongs_to :author
  
    validates :title, :presence =&gt; true
  end
  </code></pre>
  
  <p>Skipping validations is easy:</p>
  
  <pre><code>a = Author.new
  a.save(:validate =&gt; false)
  </code></pre>
  
  <p>However, I need skip author validations when creating a book without skipping books validations, like this:</p>
  
  <pre><code>b = Book.new
  b.title = "A Book"
  
  b.author = Author.last
  b.save
  </code></pre>