Minimal extensions for active record 3