joannangx/visionaria_app

View on GitHub
db/migrate/20161028050435_create_comments.rb

Summary

Maintainability
A
35 mins
Test Coverage
class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.string :username
      t.text :body
      t.references :post, index: true, foreign_key: true
      t.references :user, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end