Created customers

This commit is contained in:
Jason Denney
2013-01-20 13:52:19 -05:00
parent 11e738b428
commit d95f51eeca
3 changed files with 45 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
class Customer < ActiveRecord::Base
attr_accessible :first_name, :last_name, :addrStreet1,
:addrStreet2, :addrCity, :addrState, :addrZip, :phone, :email
has_many :transactions
def to_s
"#{first_name} #{last_name}"
end
end