Created
April 14, 2011 17:33
-
-
Save buk/920018 to your computer and use it in GitHub Desktop.
technician.rb und report.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Technician < ActiveRecord::Base | |
attr_accessible :name, :email | |
has_many :@reports | |
end | |
class Report < ActiveRecord::Base | |
attr_accessible :technician_id, :title, :problem | |
belongs_to :technician | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment