Sha256: 28dcd6ca9e17dfa13bdf87a00259dd8628b72ca649ae9f8e3e00d459660157f9

Contents?: true

Size: 343 Bytes

Versions: 405

Compression:

Stored size: 343 Bytes

Contents

class CreateAgentRelationships < ActiveRecord::Migration
  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

405 entries across 397 versions & 22 rubygems

Version Path
enju_circulation-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_message-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_event-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_oai-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_nii-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_ndl-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_subject-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_library-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_biblio-0.2.0 db/migrate/20100606073747_create_agent_relationships.rb
enju_leaf-1.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_seed-0.2.0 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_leaf-1.2.0.beta.4 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_seed-0.2.0.beta.7 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_library-0.2.0.beta.10 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_biblio-0.2.0.beta.4 db/migrate/20100606073747_create_agent_relationships.rb
enju_message-0.2.0.beta.5 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_event-0.2.0.beta.4 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_circulation-0.2.0.beta.4 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_inter_library_loan-0.2.0.beta.2 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_ndl-0.2.0.beta.3 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb