diff options
Diffstat (limited to 'db/migrate/20130611193511_add_slug_to_posts_and_categories.refinery_blog.rb')
-rw-r--r-- | db/migrate/20130611193511_add_slug_to_posts_and_categories.refinery_blog.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20130611193511_add_slug_to_posts_and_categories.refinery_blog.rb b/db/migrate/20130611193511_add_slug_to_posts_and_categories.refinery_blog.rb new file mode 100644 index 0000000..a1091e9 --- /dev/null +++ b/db/migrate/20130611193511_add_slug_to_posts_and_categories.refinery_blog.rb @@ -0,0 +1,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
\ No newline at end of file |