added purchase model and created data base table for it
ran rake db migrate again because I'm getting an error ActiveRecord::UnknownAttributeErro. Didn't fix the problem.
updated db file and then ran rake db:migrate agian and that didn't work