3scale/porta

View on GitHub
db/migrate/20100720133402_add_markup_to_bcms_blog.rb

Summary

Maintainability
A
25 mins
Test Coverage
class AddMarkupToBcmsBlog < ActiveRecord::Migration

  def self.up
    add_column :blog_posts, :markup_type, :string, :default => 'simple'
    add_column :blog_posts, :content_with_markup, :string, :limit => 2147483647
    add_column :blog_post_versions, :markup_type, :string, :default => 'simple'
    add_column :blog_post_versions, :content_with_markup, :string, :limit => 2147483647
  end

  def self.down
    remove_column :blog_posts, :markup_type
    remove_column :blog_posts, :content_with_markup
    remove_column :blog_post_versions, :markup_type
    remove_column :blog_post_versions, :content_with_markup
  end
end