Removed date and code attributes from model transaction. Refactored transaction.rb