summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/invite_code.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/invite_code.rb b/app/models/invite_code.rb
new file mode 100644
index 0000000..b9f6f33
--- /dev/null
+++ b/app/models/invite_code.rb
@@ -0,0 +1,10 @@
+class InviteCode < CouchRest::Model::Base
+ use_database 'invite_codes'
+ property :invite_code, String
+ timestamps!
+
+ design do
+ view :by__id
+ end
+end
+