summaryrefslogtreecommitdiff
path: root/users/app/models
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-04-02 10:35:21 +0200
committerAzul <azul@leap.se>2013-04-09 09:01:34 +0200
commitaedfab27b9a03f41638fefb1b39857ca66a99257 (patch)
treedd3bf01b612a8ee83b4839df93e4d3fec446e064 /users/app/models
parent2fe1c1f23d5ac09f3eda68fa247e1efdf31f520b (diff)
initial token model and unit test
Diffstat (limited to 'users/app/models')
-rw-r--r--users/app/models/token.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/app/models/token.rb b/users/app/models/token.rb
new file mode 100644
index 0000000..9de6850
--- /dev/null
+++ b/users/app/models/token.rb
@@ -0,0 +1,10 @@
+class Token < CouchRest::Model::Base
+
+ use_database :tokens
+
+ property :user_id, String, accessible: false
+
+ validates :user_id, presence: true
+
+end
+