Pārlūkot izejas kodu

Cascade delete posts when a feed is deleted

master
Adrian Short pirms 12 gadiem
vecāks
revīzija
0facefb0bb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app/models/feed.rb

+ 1
- 1
app/models/feed.rb Parādīt failu

@@ -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"


Notiek ielāde…
Atcelt
Saglabāt