crowdAI/crowdai

View on GitHub
doc/technical/archived_migrations/20170428113946_rename_posts_to_comments.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RenamePostsToComments < ActiveRecord::Migration[5.0]
  def change
    execute "alter table posts rename to comments;"
    rename_column :comments, :post, :comment
    rename_column :comments, :post_markdown, :comment_markdown
  end
end