From fe3e374daa274a38723da52d929805b80f7ef383 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 31 Dec 2013 11:50:34 -0800 Subject: Removing join-model we are no longer using. --- users/app/models/user_message.rb | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 users/app/models/user_message.rb (limited to 'users') diff --git a/users/app/models/user_message.rb b/users/app/models/user_message.rb deleted file mode 100644 index 51ca46c..0000000 --- a/users/app/models/user_message.rb +++ /dev/null @@ -1,26 +0,0 @@ -# TODO WOULD NOT USE anymore, in proposed alternate, so delete file. -class XXXXUserMessage < CouchRest::Model::Base - - use_database :user_messages - belongs_to :user - belongs_to :message - - validates :user_id, presence: true - validates :message_id, presence: true - - # should not have multiple rows connecting one user to particular message: - validates_uniqueness_of :user_id, :scope => [:message_id] - - property :seen, TrueClass, :default => false - - design do - view :by_user_id - view :by_message_id - view :by_user_id_and_seen - view :by_user_id_and_message_id - own_path = Pathname.new(File.dirname(__FILE__)) - load_views(own_path.join('..', 'designs', 'user_message')) - - end - -end -- cgit v1.2.3