aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/5_add_cached_slugs.rb
blob: c18930279e5b13cd2fd0e690a13c924708dc7f1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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