diff options
author | ankonym <ankonym@gmail.com> | 2015-08-13 15:28:02 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-09-28 15:12:44 +0200 |
commit | 393291de60c4f29bb03bad596bb60c1e0648e6e7 (patch) | |
tree | 8d01c81562075613b969aef8e36805f070cd13f8 /app | |
parent | 9156f1354f404c569e7fd337cff0171f6f43842e (diff) |
Add invite code model
Diffstat (limited to 'app')
-rw-r--r-- | app/models/invite_code.rb | 10 |
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 + |