File for modifying the SQL query for create 'post'?

Here are examples of their use:

and

Make sure you are familiar with Rails Active Record Model concepts, because you’d normally want to do everything via Ruby on Rails rather than directly on the database.