aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/models/project.js
diff options
context:
space:
mode:
authorLurifax <stianalexanderolsen@gmail.com>2013-05-01 22:20:18 +0200
committerLurifax <stianalexanderolsen@gmail.com>2013-05-01 22:20:18 +0200
commit464d4717ace36646db7636f2ebc7701a921c75dd (patch)
tree670d7fa67e7633ca818cc5b48e8886fab2d6ab3f /models/project.js
parentChanges in text (diff)
parentadded generateRandomAccessToken method (diff)
downloadDivid-464d4717ace36646db7636f2ebc7701a921c75dd.tar.gz
Changes in text in home.ejs
Diffstat (limited to '')
-rw-r--r--models/project.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/models/project.js b/models/project.js
deleted file mode 100644
index 2424694..0000000
--- a/models/project.js
+++ /dev/null
@@ -1,39 +0,0 @@
-
-/**
- * Module dependencies
- */
-
-var mongoose = require('mongoose')
- , Schema = mongoose.Schema;
-
-
-
-
-
-var ProjectSchema = new Schema({
- user: { type: String, ref: 'User' },
- name: { type: String, default: '', trim: true },
- description: {type: String, default: '', trim: true },
- currency: { type: String, default: 'kr', trim: true },
- public: { type: String, default: 'invite-only' },
- created: { type: Date, default: Date.now },
- updated: { type: Date, default: Date.now }
-});
-
-
-// the four validations below only apply if you are signing up traditionally
-
-ProjectSchema.path('name').validate(function(name) {
- // if you're authenticated by any of the oauth strategies (facebook, twitter), don't validate
- return name.length;
-}, 'Project name cannot be blank');
-
-ProjectSchema.methods = {
-
- log: function() {
- console.log('wat. wat logged this');
- }
-
-}
-
-mongoose.model('Project', ProjectSchema);