Geez! There are several ways to attach a table top to the rails. there are the small double 'L' shaped metal connectors. One side fits into a groove made in the rails (usually the end rails) The other side is screwed to the top. The slot in the side rails allows for wood movement of the top.
http://www.rockler.com/product.cfm?page=784&filter=table%20hardware
Another method is to screw a small block(something like ¾"x1½") to the inside of the rails at the rail top. (one block the length of the rail or a couple of smaller blocks) The ¾ edge of these blocks can be glued and screwed to the inside of the rails. When making these blocks there needs to be slots, about ¼" long and the width of the screw shanks drilled through the wide side of the block. Screws can be inserted through these slots and into the top. The slots allow for movement of the table top screws with the wood. The holes and slots can be made with a hand drill.
Don't know how you would use pocket holes to attach the top while allowing for wood movement anyway. But then I'm not into pocket holes. One of my failings!
Happy Thanksgiving!