Sha256: cd50e89e8b904c281a41c33806f78fe19733eefdf50f660c461c5cfadb9d777b
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
class Wishlist < ActiveRecord::Base self.table_name = "wishlists" self.primary_key = 'id' has_many :request_showings, class_name: "Wishlist", foreign_key: "wishlist_id" has_many :sharings, :inverse_of => :wishlist belongs_to :customer, :inverse_of => :wishlists belongs_to :buying_wishlist, foreign_key: "wishlist_id" belongs_to :investing_wishlist, foreign_key: "wishlist_id" belongs_to :renting_wishlist, foreign_key: "wishlist_id" belongs_to :selling_wishlist, foreign_key: "wishlist_id" def describe_id "Wishlist ##{id}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
civic311_test3-0.0.2 | app/models/wishlist.rb |