Sha256: a46e072ab44aaa4ad866cc89dd85512f9b24283a7005029a9a414e1471179f70
Contents?: true
Size: 379 Bytes
Versions: 7
Compression:
Stored size: 379 Bytes
Contents
class TestUser < ActiveRecord::Base self.table_name = "users" end class TestItem < ActiveRecord::Base self.table_name = "items" end class TestWatching < ActiveRecord::Base self.table_name = "watchings" belongs_to :watcher, :class_name => "TestUser", :foreign_key => "user_id" belongs_to :watched_item, :class_name => "TestItem", :foreign_key => "item_id" end
Version data entries
7 entries across 7 versions & 1 rubygems