aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Wilkinson <kai@wikyd.org>2011-06-16 22:18:36 -0700
committerKyle Wilkinson <kai@wikyd.org>2011-06-16 22:52:11 -0700
commit07a1a81b95ff4be4b4a861496af6af6afbdf8923 (patch)
tree8ada2d70b4cec3dc5691e5a27e906fb3babd4b35
parentb3c06562a4a58e2cd0711f126f58d09b22c97e74 (diff)
downloadrefinerycms-blog-07a1a81b95ff4be4b4a861496af6af6afbdf8923.tar.gz
refinerycms-blog-07a1a81b95ff4be4b4a861496af6af6afbdf8923.tar.bz2
refinerycms-blog-07a1a81b95ff4be4b4a861496af6af6afbdf8923.zip
Add migration to add custom_url field to BlogPost.
-rw-r--r--db/migrate/5_add_custom_url_field_to_blog_posts.rb9
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