From 594dd8ca96f9a0e06dd28d2176653855e39a43e2 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 27 Feb 2012 17:08:37 +1300 Subject: Now supporting FriendlyId 4 --- db/migrate/20120227022021_add_slug_to_posts_and_categories.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20120227022021_add_slug_to_posts_and_categories.rb (limited to 'db') diff --git a/db/migrate/20120227022021_add_slug_to_posts_and_categories.rb b/db/migrate/20120227022021_add_slug_to_posts_and_categories.rb new file mode 100644 index 0000000..87d1291 --- /dev/null +++ b/db/migrate/20120227022021_add_slug_to_posts_and_categories.rb @@ -0,0 +1,9 @@ +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 -- cgit v1.2.3