summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-08-13 15:28:02 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:44 +0200
commit393291de60c4f29bb03bad596bb60c1e0648e6e7 (patch)
tree8d01c81562075613b969aef8e36805f070cd13f8
parent9156f1354f404c569e7fd337cff0171f6f43842e (diff)
Add invite code model
-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
+