Renamed Transaction model to Purchase in order to avoid conflicts with the ActiveRecord method
--continue