aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20130611193511_add_slug_to_posts_and_categories.refinery_blog.rb
blob: a1091e971ef21e53e7fb3c5d719895506016bfce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# This migration comes from refinery_blog (originally 20120227022021)
class AddSlugToPostsAndCategories < ActiveRecord::Migration
  def change
    add_column Refinery::Blog::Post.table_name, :slug, :string
    add_index Refinery::Blog::Post.table_name, :slug

    add_column Refinery::Blog::Category.table_name, :slug, :string
    add_index Refinery::Blog::Category.table_name, :slug
  end
end