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