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_circulation-0.1.0.pre29 spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
enju_circulation-0.1.0.pre29 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_flower-0.1.0.pre11 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_ndl-0.1.0.pre25 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_flower-0.1.0.pre10 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.1.0.pre42 db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc3 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_library-0.1.0.pre24 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_subject-0.1.0.pre20 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_oai-0.1.0.pre10 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.1.0.pre28 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_leaf-1.1.0.rc2 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_ndl-0.1.0.pre24 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.1.0.pre41 db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.1.0.pre27 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_flower-0.1.0.pre9 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.1.0.pre26 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_library-0.1.0.pre23 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_ndl-0.1.0.pre23 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_subject-0.1.0.pre19 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb