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