Sha256: aa4c1d6718eed7b4df99ebe0dbecdad8986ac1026976b23e12dd3df9d13e8f27

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

class CreateApprovalComments < ActiveRecord::Migration[5.1]
  def change
    create_table :approval_comments do |t|
      t.integer :request_id, null: false
      t.integer :user_id,    null: false
      t.text    :content,    null: false

      t.timestamps

      t.index :request_id
      t.index :user_id
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
approval-0.3.2 spec/rails/rails-5.1.2/db/migrate/20170816102907_create_approval_comments.rb
approval-0.3.1 spec/rails/rails-5.1.2/db/migrate/20170816024439_create_approval_comments.rb
approval-0.2.0 spec/rails/rails-5.1.2/db/migrate/20170731101410_create_approval_comments.rb