rails g scaffold purchase