Sha256: 4cef61ee3cb9831a5fd85f56c7c715a7b8804a5bea049b400d09ba6c9c1a39bc

Contents?: true

Size: 348 Bytes

Versions: 6

Compression:

Stored size: 348 Bytes

Contents

class CreateAgentRelationships < ActiveRecord::Migration[5.2]
  def change
    create_table :agent_relationships do |t|
      t.integer :parent_id
      t.integer :child_id
      t.integer :agent_relationship_type_id

      t.timestamps
    end
    add_index :agent_relationships, :parent_id
    add_index :agent_relationships, :child_id
  end
end

Version data entries

6 entries across 6 versions & 6 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb