Sha256: f996ea360bcc317ce9d8a6f927ae6d0bdc2b9b36be7c5e5d0d59505706c140f3

Contents?: true

Size: 206 Bytes

Versions: 5

Compression:

Stored size: 206 Bytes

Contents

class CreateComments < ActiveRecord::Migration[5.0]
  def change
    create_table :comments do |t|
      t.integer :post_id
      t.integer :user_id
      t.text :body

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notify_on-1.0.5 spec/dummy/db/migrate/20161021100707_create_comments.rb
notify_on-1.0.4 spec/dummy/db/migrate/20161021100707_create_comments.rb
notify_on-1.0.3 spec/dummy/db/migrate/20161021100707_create_comments.rb
notify_on-1.0.2 spec/dummy/db/migrate/20161021100707_create_comments.rb
notify_on-1.0.1 spec/dummy/db/migrate/20161021100707_create_comments.rb