summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
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