title: Rails generate model including validations?
body: <p>I was wondering if anybody knew of a way to do something like the following:</p>
  
  <pre><code>rails generate model Foo name:string, validates: {:name, uniqueness: true}
  </code></pre>
  
  <p>That is, whilst declaring a model generator with some attributes, work some rails magic to add your validations at the same time.</p>