aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-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
+