Browse Source

Index title key in feeds collection

master
Adrian Short 12 years ago
parent
commit
323ad0d2c1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/models/feed.rb

+ 2
- 0
app/models/feed.rb View File

@@ -9,6 +9,8 @@ class Feed
key :generator, String key :generator, String
key :last_fetched, Time, :default => nil key :last_fetched, Time, :default => nil
timestamps! timestamps!
ensure_index :title


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




Loading…
Cancel
Save