diff options
author | Philip Arndt <parndt@gmail.com> | 2012-02-27 17:08:37 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-02-27 17:08:37 +1300 |
commit | 594dd8ca96f9a0e06dd28d2176653855e39a43e2 (patch) | |
tree | dbac325e354b3266428fd0444a708173766266fa /db | |
parent | 837ddfe42bfd906f79e2a28608dd6af988511e64 (diff) | |
download | refinerycms-blog-594dd8ca96f9a0e06dd28d2176653855e39a43e2.tar.gz refinerycms-blog-594dd8ca96f9a0e06dd28d2176653855e39a43e2.tar.bz2 refinerycms-blog-594dd8ca96f9a0e06dd28d2176653855e39a43e2.zip |
Now supporting FriendlyId 4
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20120227022021_add_slug_to_posts_and_categories.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |