浏览代码

Cascade delete posts when a feed is deleted

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

+ 1
- 1
app/models/feed.rb 查看文件

@@ -8,7 +8,7 @@ class Feed
key :last_fetched, Time, :default => nil
timestamps!

many :posts
many :posts, :dependent => :destroy

validates :title, :presence => true
validates_format_of :feed_url, :with => URI::regexp(%w(http https)), :message => "must be a valid URL"


正在加载...
取消
保存