## Gerando os Models ##
Execute os seguintes comandos:
```text
rails g model Category name
```
rails g (generate) model Category (nome do modelo) name (campo)
```text
rails g model Review rating:integer description:text reviewable:references{polymorphic} user:references
```
O campo ( user:references ) pelo fato de ter o "references" na frente, o rails entende que ele é uma
referência ao modelo user.
```text
rails g model Favorite favoritable:references{polymorphic} user:references
rails g model Serie title description:text thumbnail_key
category:references featured_thumbnail_key thumbnail_cover_key
rails g model Movie title description:text thumbnail_key video_key episode_number:integer featured_thumbnail_key serie:references{optional} category:references thumbnail_cover_key
```
serie:references{optional} - Signfica que certo campo é opcional, poderá ter ou não, no caso, um
filme/episódio pode pertencer ou não à uma série.
```text
rails g model Player start_date:datetime end_date:datetime elapsed_time:time movie:references user:references
rails g migration add_last_watched_episode_to_series last_watched_episode:references
```