From 70e8d3c49c3e1db9a2c895ad7afb2ec46671c21a Mon Sep 17 00:00:00 2001 From: Kyle Wilkinson Date: Tue, 21 Jun 2011 02:09:16 -0700 Subject: Add migration to create a new field on BlogPosts for custom teasers. --- db/migrate/7_add_custom_teaser_field_to_blog_posts.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrate/7_add_custom_teaser_field_to_blog_posts.rb diff --git a/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb b/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb new file mode 100644 index 0000000..daa4d04 --- /dev/null +++ b/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb @@ -0,0 +1,10 @@ +class AddCustomTeaserFieldToBlogPosts < ActiveRecord::Migration + def self.up + add_column :blog_posts, :custom_teaser, :text + end + + def self.down + remove_column :blog_posts, :custom_teaser + end +end + -- cgit v1.2.3