Sha256: 7f42ab33d73d60deba8a750cb3471ea541b56519c991b681c735bed3cdf38fc0

Contents?: true

Size: 215 Bytes

Versions: 8

Compression:

Stored size: 215 Bytes

Contents

class AlterCommentableIdToString < ActiveRecord::Migration
  def self.up
    change_column :comments, :commentable_id, :string
  end

  def self.down
    change_column :comments, :commentable_id, :integer
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blacklight_user_generated_content-0.0.8 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
blacklight_user_generated_content-0.0.7 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
blacklight_user_generated_content-0.0.6 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
blacklight_user_generated_content-0.0.5 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
blacklight_user_generated_content-0.0.4 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
blacklight_user_generated_content-0.0.3 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
blacklight_user_generated_content-0.0.2 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
blacklight_user_generated_content-0.0.1 lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb