diff options
Diffstat (limited to 'users/app')
-rw-r--r-- | users/app/models/token.rb | 10 |
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 + |