Disable WordPress post revisions

I always forget to disable post revisions on fresh WordPress installation so I need to write it down.

Add a single line to wp-config.php file:

define('WP_POST_REVISIONS', 0);