Is it better to use the generate migration command to build a database table or is the generate model command better? : <p>I am learning rails and it seems that there are two ways to create a database structure.</p>

<p>One is to use rails g migration table name and then add columns within the migration file. </p>

<p>The other way seems to be to rails g model modelname columname:datatype.</p>

<p>Which is a more standard or better way?</p>
