浏览代码

Change feeds_layers table to subscriptions

master
Adrian Short 11 年前
父节点
当前提交
e5a24cee5e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      app/models/post.rb

+ 3
- 3
app/models/post.rb 查看文件

@@ -42,15 +42,15 @@ class Post < ActiveRecord::Base
( -- Subquery returns a list of post_ids for posts on this layer
SELECT p.id

FROM feeds_layers fl
FROM subscriptions s
INNER JOIN feeds f
ON fl.feed_id = f.id
ON s.feed_id = f.id

INNER JOIN posts p
ON p.feed_id = f.id

WHERE fl.layer_id = #{layer_id}
WHERE s.layer_id = #{layer_id}
)
AND


正在加载...
取消
保存