cached slugs speed things up

This commit is contained in:
Joe Sak 2011-06-14 13:53:22 -05:00
parent 0fb08973fd
commit 434ad6535e

View file

@ -0,0 +1,11 @@
class AddCachedSlugs < ActiveRecord::Migration
def self.up
add_column :blog_categories, :cached_slug, :string
add_column :blog_posts, :cached_slug, :string
end
def self.down
remove_column :blog_categories, :cached_slug
remove_column :blog_posts, :cached_slug
end
end