1.right after the line introducing the class in the controller
2.a script that alters the structure of the underlying database
3. it can do more complex things like modifying the database structure and running tests
4.expression is ruby code that prints out a value in html