Sha256: 87f56175c5feb8fcb21a5f8a49b5f2b57df6ed2d1651bde8f99a1f5a8d41b780

Contents?: true

Size: 202 Bytes

Versions: 1

Compression:

Stored size: 202 Bytes

Contents

class CreateComments < ActiveRecord::Migration[5.1]
  def change
    create_table :comments do |t|
      t.belongs_to :post, foreign_key: true
      t.string :body

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
link_to_add_fields-0.1.0 spec/dummy/db/migrate/20171003174805_create_comments.rb