Sha256: b201c40cb7f50752789b07a30c8f21a20e8eb95c9f71b0e5573ca75a577ad4c3

Contents?: true

Size: 348 Bytes

Versions: 277

Compression:

Stored size: 348 Bytes

Contents

class CreatePatronRelationships < ActiveRecord::Migration
  def change
    create_table :patron_relationships do |t|
      t.integer :parent_id
      t.integer :child_id
      t.integer :patron_relationship_type_id

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

Version data entries

277 entries across 276 versions & 14 rubygems

Version Path
enju_resource_merge-0.0.14 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.57 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_resource_merge-0.0.13 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.56 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.55 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.54 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.53 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.52 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.0.2 db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.0.1 db/migrate/20100606073747_create_patron_relationships.rb
enju_resource_merge-0.0.12 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.51 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.50 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_resource_merge-0.0.11 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.49 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.48 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_oai-0.0.3 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb