5.4 Creating the Post Model

Models in Rails use a singular name, and their corresponding database
tables use a plural name. Rails provides a generator for creating
models, which most Rails developers tend to use when creating new
models. To create the new model, run this command in your terminal:

$ rails generate model Post title:string text:text

With that command we told Rails that we want a Post model, together with
a title attribute of type string, and a text attribute of type text.
Those attributes are automatically added to the posts table in the
database and mapped to the Post model.