Sha256: 36ce251bb32bc51b9649382173c747797d88e88bc78cb81174cbd96a5298e87b

Contents?: true

Size: 346 Bytes

Versions: 9

Compression:

Stored size: 346 Bytes

Contents

class CreateApprovalComments < ActiveRecord::Migration<%= migration_version %>
  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

9 entries across 9 versions & 1 rubygems

Version Path
approval-0.3.5 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.3.4 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.3.3 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.3.2 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.3.1 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.3.0 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.2.3 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.2.2 lib/generators/approval/templates/create_approval_comments.rb.tt
approval-0.2.0 lib/generators/approval/templates/create_approval_comments.rb.tt