Sha256: b9f7cdc0f476a283d424494f546b5910b1bea5cf5e10d697a943e635752470fa

Contents?: true

Size: 261 Bytes

Versions: 10

Compression:

Stored size: 261 Bytes

Contents

class ChangeCommentToTextField < ActiveRecord::Migration
  def self.up
    remove_column "comments", "comment"
    add_column "comments", "comment", :text        
  end

  def self.down
    change_column "comments", "comment", :string, :default => ""
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/019_change_comment_to_text_field.rb
community_engine-3.0.0 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.3.2 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.3.1 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.3.0 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.1.0 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.0.0 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.0.0.beta3 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.0.0.beta2 db/migrate/019_change_comment_to_text_field.rb
community_engine-2.0.0.beta1 db/migrate/019_change_comment_to_text_field.rb