aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/7_add_custom_teaser_field_to_blog_posts.rb')
-rw-r--r--db/migrate/7_add_custom_teaser_field_to_blog_posts.rb8
1 files changed, 2 insertions, 6 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
index daa4d04..9c50b97 100644
--- a/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb
+++ b/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb
@@ -1,10 +1,6 @@
class AddCustomTeaserFieldToBlogPosts < ActiveRecord::Migration
- def self.up
- add_column :blog_posts, :custom_teaser, :text
- end
-
- def self.down
- remove_column :blog_posts, :custom_teaser
+ def change
+ add_column Refinery::BlogPost.table_name, :custom_teaser, :text
end
end