diff options
author | Joe Sak <joe@joesak.com> | 2011-06-17 07:45:16 -0700 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-06-17 07:45:16 -0700 |
commit | 6c14d65673fd3615980f817189f77c16f04eff07 (patch) | |
tree | c636f7d56e9c9d03c987d0a54a77af8238383739 /db | |
parent | b3c06562a4a58e2cd0711f126f58d09b22c97e74 (diff) | |
parent | e1390a0d72e2dc35f1306d11e1e756c138903572 (diff) | |
download | refinerycms-blog-6c14d65673fd3615980f817189f77c16f04eff07.tar.gz refinerycms-blog-6c14d65673fd3615980f817189f77c16f04eff07.tar.bz2 refinerycms-blog-6c14d65673fd3615980f817189f77c16f04eff07.zip |
Merge pull request #76 from wikyd/custom_urls
Allow users to set a custom url for a blog post independent of the title
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/5_add_custom_url_field_to_blog_posts.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/5_add_custom_url_field_to_blog_posts.rb b/db/migrate/5_add_custom_url_field_to_blog_posts.rb new file mode 100644 index 0000000..5a8901e --- /dev/null +++ b/db/migrate/5_add_custom_url_field_to_blog_posts.rb @@ -0,0 +1,9 @@ +class AddCustomUrlFieldToBlogPosts < ActiveRecord::Migration + def self.up + add_column :blog_posts, :custom_url, :string + end + + def self.down + remove_column :blog_posts, :custom_url + end +end |