If you are drinking alcohol and plan to ride later, you should:

If you have been drinking, the only way to eliminate the alcohol from your system is to wait. Typically, it takes around one hour for the body to eliminate the alcohol content of one drink. It can be dangerous to ride after drinking, even if your blood alcohol content (BAC) is well below the legal limit.
DMV Writen Test