When you create a model using rails generate model, there are a lot of helper functions available to you to help manipulate data in the database! What are they? The ultimate resource can be found on rails' website:
[https://guides.rubyonrails.org/active_record_basics.html](https://guides.rubyonrails.org/active_record_basics.html)
https://guides.rubyonrails.org/active_record_basics.html
Below is a quick cheatsheet to the most important things to know! Below that is a list of important questions to understand. Feel free to use them to answer one-off questions or read through them in order to get a brief walk through. Lecture guides will be your best bet if you want the idea of a Model explained to you through examples.
Choose from the following types when generating a new model:
:string - is for small data types such as a title. (Should you choose string or text?):text - is for longer pieces of textual data, such as a paragraph of information:binary - is for storing data such as images, audio, or movies.:boolean - is for storing true or false values.:date - store only the date:datetime - store the date and time into a column.:time - is for time only:timestamp - for storing date and time into a column.(What's the difference between datetime and timestamp?)