Sha256: c81a3b5a80ea437acdcc59791a31c8857d0a9900016f3c905a1ada2238694384

Contents?: true

Size: 344 Bytes

Versions: 9

Compression:

Stored size: 344 Bytes

Contents

class CreatePatronRelationships < 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

9 entries across 9 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc12 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc11 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc10 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc9 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc8 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc7 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc6 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc5 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc4 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb