Prev | Current Page 123 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

In addition, hopefully you??™ve
begun to understand how to think about the basic Active Record operations in the context of
the four basic CRUD operations. If you??™re using Active Record in the context of Ruby on Rails,
thinking about Active Record this way will be especially helpful.
You may have also started to notice recurring patterns in the way names of Active Record
classes and attributes relate to the generated SQL. In the next chapter, we??™ll explain how to set
up and maintain your database using standard Active Record naming conventions and tools.
And of course, we??™ll show you how to break these conventions for your own twisted uses.
CHAPTER 2 ?–  ACTIVE RECORD AND SQL 42
Setting Up Your Database
If you??™ve been reading through this book from the start, you should now be pretty comfortable
with the basic idea of Active Record and how to write create, update, read, and delete
operations. So you??™re just about ready to start digging into all the juicy details and extras that
Active Record brings to the table.


Pages:
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135