add active record extension