Sha256: fd91cd4d760a79d1c28387d98bddb17e5393627c2dd081b2e71131778c71aabb

Contents?: true

Size: 375 Bytes

Versions: 14

Compression:

Stored size: 375 Bytes

Contents

# This migration comes from inkwell (originally 20130212130858)
class RefactorCommentTable < ActiveRecord::Migration
  def change
    rename_column :inkwell_comments, "#{::Inkwell::Engine::config.post_table.to_s.singularize}_id", :topmost_obj_id
    add_column :inkwell_comments, :topmost_obj_type, :string
    ::Inkwell::Comment.update_all :topmost_obj_type => 'p'
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
inkwell-2.0.0 test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
inkwell-2.0.0 test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb
inkwell-1.5.2 test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb
inkwell-1.5.2 test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
inkwell-1.5.1 test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
inkwell-1.5.1 test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb
inkwell-1.4.1 test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb
inkwell-1.4.1 test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
inkwell-1.2.0 test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb
inkwell-1.2.0 test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
inkwell-1.1.7 test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb
inkwell-1.1.7 test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
inkwell-1.1.1 test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
inkwell-1.1.1 test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb