diff options
author | Uģis Ozols <ugis@ugisozols.com> | 2013-07-13 13:41:41 -0700 |
---|---|---|
committer | Uģis Ozols <ugis@ugisozols.com> | 2013-07-13 13:41:41 -0700 |
commit | 48950c119297dc6c99edfe8d1c99eb7a77dc9496 (patch) | |
tree | 742dab40d319fea3d0909bce9f56ad36be98ead3 /db/migrate/20120227022021_add_slug_to_posts_and_categories.rb | |
parent | 6c14fbc20c8dece121b7569b7a5a0bd3c497fd57 (diff) | |
parent | ccd0f3b7ec1d47dcce017389087ac6d20f709f93 (diff) | |
download | refinerycms-blog-48950c119297dc6c99edfe8d1c99eb7a77dc9496.tar.gz refinerycms-blog-48950c119297dc6c99edfe8d1c99eb7a77dc9496.tar.bz2 refinerycms-blog-48950c119297dc6c99edfe8d1c99eb7a77dc9496.zip |
Merge pull request #339 from refinery/revert_f906ef024ee39c31148edb49c6511f007735ce5a
Revert f906ef0 but maintain table name improvements
Diffstat (limited to 'db/migrate/20120227022021_add_slug_to_posts_and_categories.rb')
-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 |