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.17 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_question-0.0.21 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.0.8 db/migrate/20100606073747_create_patron_relationships.rb
enju_library-0.0.2 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_bookmark-0.0.22 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.71 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_event-0.1.13 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_event-0.0.27 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_subject-0.0.18 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.0.7 db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.0.6 db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.0.5 db/migrate/20100606073747_create_patron_relationships.rb
enju_biblio-0.0.4 db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.70 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_subject-0.0.17 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.69 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.68 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_event-0.0.26 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_question-0.0.20 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
enju_circulation-0.0.67 spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb