Changeset 80843
- Timestamp:
- 07/18/11 15:12:12 (4 years ago)
- Location:
- branches/gsoc11-statistics/stats-server/app/models
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gsoc11-statistics/stats-server/app/models/installed_port.rb
r80511 r80843 1 1 class InstalledPort < ActiveRecord::Base 2 2 belongs_to :port 3 has_one :user 4 5 validates_presence_of :user_id, :port_id, :version 3 6 end -
branches/gsoc11-statistics/stats-server/app/models/port.rb
r80511 r80843 2 2 has_one :category 3 3 belongs_to :category 4 has_many :installed_ports 5 6 7 validates_presence_of :name, :version 4 8 5 9 def self.search(criteria, val, page) -
branches/gsoc11-statistics/stats-server/app/models/user.rb
r80568 r80843 1 1 class User < ActiveRecord::Base 2 has_one :os_statistic s2 has_one :os_statistic 3 3 has_many :installed_ports 4 4 end
Note: See TracChangeset
for help on using the changeset viewer.

