Sha256: e88281c21d0599e9e7d14250e70434c2007f7f53ac199a876667f68862556746

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

class CreateApprovalItems < ActiveRecord::Migration[5.1]
  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

3 entries across 3 versions & 1 rubygems

Version Path
approval-0.3.2 spec/rails/rails-5.1.2/db/migrate/20170816102908_create_approval_items.rb
approval-0.3.1 spec/rails/rails-5.1.2/db/migrate/20170816024440_create_approval_items.rb
approval-0.2.0 spec/rails/rails-5.1.2/db/migrate/20170731101411_create_approval_items.rb