Database names

James Bond wrote:

If I generate a model by: "./script generate model user" it make a table
"users".
But if I want that table is "user" not "users" what I can do?

You can override the default table name in your migration file after
running the generator.

However, if I had anything to say about it I would not allow a developer
to break this Rails convention. The only allowable exception would be in
the case of a pre-existing database schema that is being used somewhere
outside the Rails project.

But, if you want to go to all the extra trouble to break with
convention, Rails will certainly let you do so.

You need to change the table name in the migration and also set the
table name in the model so it knows what to look for:

Example: