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_flower-0.1.0.pre3 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_subject-0.1.0.pre10 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_event-0.1.17.pre9 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_library-0.1.0.pre16 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.1.0.pre17 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_nii-0.1.0.pre7 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_event-0.1.17.pre8 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_subject-0.1.0.pre9 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_ndl-0.1.0.pre13 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_library-0.1.0.pre15 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.1.0.pre28 db/migrate/20100606073747_create_patron_relationships.rb
enju_nii-0.1.0.pre6 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_ndl-0.1.0.pre12 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_nii-0.1.0.pre5 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.1.0.pre27 db/migrate/20100606073747_create_patron_relationships.rb
enju_ndl-0.1.0.pre11 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_bookmark-0.1.2.pre9 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_subject-0.1.0.pre8 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_library-0.1.0.pre14 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.1.0.pre26 db/migrate/20100606073747_create_patron_relationships.rb