title: Ruby on Rails plural (controller) and singular (model) convention - explanation
body: <p>As per Ruby on Rails convention, controller names get pluralized while model names are singular. Example : a Users controller, but a User model.</p>
  
  <pre><code>rails generate controller Users
  rails generate model User name:string email:string
  </code></pre>
  
  <p>Now open migration file</p>
  
  <pre><code> class CreateUsers &lt; ActiveRecord::Migration
    def change
      create_table :users do |t|
        t.string :name
        t.string :email    
        t.timestamps
      end
    end
  end
  </code></pre>
  
  <p>Here table name is plural (users).</p>
  
  <p>So my question is - Why table name is plural (users) even though the model name is singular (User)?</p>