Sha256: c490f56d367578e7af2a1a8b02a6585f6609c79212eef9951cc4e8d24528b3d4

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

class CreateApprovalItems < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :approval_items do |t|
      t.integer :request_id,    null: false
      t.integer :resource_id
      t.string  :resource_type, null: false
      t.string  :event,         null: false
      t.text    :params

      t.timestamps

      t.index :request_id
    end

    add_index :approval_items, [:resource_id, :resource_type]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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