aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorKyle Wilkinson <kai@wikyd.org>2011-06-21 02:09:16 -0700
committerKyle Wilkinson <kai@wikyd.org>2011-06-21 02:09:16 -0700
commit70e8d3c49c3e1db9a2c895ad7afb2ec46671c21a (patch)
tree6665a522e4c2da77271857f97c8e7d2e14d5fcf0 /db/migrate
parentbce2877b2a13619841c77b6de8e87d4acf7abd53 (diff)
downloadrefinerycms-blog-70e8d3c49c3e1db9a2c895ad7afb2ec46671c21a.tar.gz
refinerycms-blog-70e8d3c49c3e1db9a2c895ad7afb2ec46671c21a.tar.bz2
refinerycms-blog-70e8d3c49c3e1db9a2c895ad7afb2ec46671c21a.zip
Add migration to create a new field on BlogPosts for custom teasers.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/7_add_custom_teaser_field_to_blog_posts.rb10
1 files changed, 10 insertions, 0 deletions
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
+