If you want to enable versioning for your Sharepoint list, you can do this is the schema.xml of your list. You must add the next attributes in the List node:

VersioningEnabled="TRUE" MajorVersionLimit="0" MajorWithMinorVersionsLimit="0"

It's as easy as that, but always be carefull not to enable this for all lists!