crowdAI/crowdai

View on GitHub
doc/technical/archived_migrations/20171017112642_create_submission_comments.rb

Summary

Maintainability
A
25 mins
Test Coverage
class CreateSubmissionComments < ActiveRecord::Migration[5.1]
  def change
    create_table :submission_comments do |t|
      t.references :submission, foreign_key: true
      t.references :participant, foreign_key: true
      t.text :comment_markdown
      t.text :comment
      t.integer :vote_count

      t.timestamps
    end
  end
end