From 07a1a81b95ff4be4b4a861496af6af6afbdf8923 Mon Sep 17 00:00:00 2001 From: Kyle Wilkinson Date: Thu, 16 Jun 2011 22:18:36 -0700 Subject: Add migration to add custom_url field to BlogPost. --- db/migrate/5_add_custom_url_field_to_blog_posts.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/5_add_custom_url_field_to_blog_posts.rb (limited to 'db') 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 -- cgit v1.2.3