crowdAI/crowdai

View on GitHub
doc/technical/archived_migrations/20170602093326_fix_comments.rb

Summary

Maintainability
A
0 mins
Test Coverage
class FixComments < ActiveRecord::Migration[5.0]
  def change
    execute "delete from comments;"
    execute "insert into comments select * from posts;"
    remove_column :topics, :description
    remove_column :topics, :description_markdown
  end
end