diff options
author | Kyle Wilkinson <kai@wikyd.org> | 2011-06-16 22:18:36 -0700 |
---|---|---|
committer | Kyle Wilkinson <kai@wikyd.org> | 2011-06-16 22:52:11 -0700 |
commit | 07a1a81b95ff4be4b4a861496af6af6afbdf8923 (patch) | |
tree | 8ada2d70b4cec3dc5691e5a27e906fb3babd4b35 /db | |
parent | b3c06562a4a58e2cd0711f126f58d09b22c97e74 (diff) | |
download | refinerycms-blog-07a1a81b95ff4be4b4a861496af6af6afbdf8923.tar.gz refinerycms-blog-07a1a81b95ff4be4b4a861496af6af6afbdf8923.tar.bz2 refinerycms-blog-07a1a81b95ff4be4b4a861496af6af6afbdf8923.zip |
Add migration to add custom_url field to BlogPost.
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 |