aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/pod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-24 16:59:17 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-24 16:59:17 +0100
commit7920c273a204e2469416a30b752b12ccd3160102 (patch)
tree5b3d9ab9596dd5eb079a281f82b836e03eff1617 /server/models/pod.js
parent3897209f46f4c4581be2b8963bf9acc28ca5032b (diff)
downloadPeerTube-7920c273a204e2469416a30b752b12ccd3160102.tar.gz
PeerTube-7920c273a204e2469416a30b752b12ccd3160102.tar.zst
PeerTube-7920c273a204e2469416a30b752b12ccd3160102.zip
Move tags in another table
Diffstat (limited to 'server/models/pod.js')
-rw-r--r--server/models/pod.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/models/pod.js b/server/models/pod.js
index 2c1f56203..fff6970a7 100644
--- a/server/models/pod.js
+++ b/server/models/pod.js
@@ -19,7 +19,6 @@ module.exports = function (sequelize, DataTypes) {
19 type: DataTypes.INTEGER, 19 type: DataTypes.INTEGER,
20 defaultValue: constants.FRIEND_SCORE.BASE 20 defaultValue: constants.FRIEND_SCORE.BASE
21 } 21 }
22 // Check createdAt
23 }, 22 },
24 { 23 {
25 classMethods: { 24 classMethods: {
@@ -68,7 +67,7 @@ function associate (models) {
68 this.belongsToMany(models.Request, { 67 this.belongsToMany(models.Request, {
69 foreignKey: 'podId', 68 foreignKey: 'podId',
70 through: models.RequestToPod, 69 through: models.RequestToPod,
71 onDelete: 'CASCADE' 70 onDelete: 'cascade'
72 }) 71 })
73} 72}
74 73