Fix test suite for ActiveRecord 3.x; assume primary key is INT if 'versions' table doesn't exist yet