summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-12-31 11:50:34 -0800
committerjessib <jessib@riseup.net>2013-12-31 11:50:34 -0800
commitfe3e374daa274a38723da52d929805b80f7ef383 (patch)
tree053d7e417eab68d2ef08a6a97657c4316b279cb2 /users/app
parentf9c96f8844205afe3c310b5b914752068728d38f (diff)
Removing join-model we are no longer using.
Diffstat (limited to 'users/app')
-rw-r--r--users/app/models/user_message.rb26
1 files changed, 0 insertions, 26 deletions
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