Sha256: 5de9fd9189ca838039e637d1692c3b3559341ff03befe941c81a442fe0d9989e

Contents?: true

Size: 282 Bytes

Versions: 275

Compression:

Stored size: 282 Bytes

Contents

class CreateDonates < ActiveRecord::Migration
  def change
    create_table :donates do |t|
      t.integer :patron_id, :null => false
      t.integer :item_id, :null => false

      t.timestamps
    end
    add_index :donates, :patron_id
    add_index :donates, :item_id
  end
end

Version data entries

275 entries across 275 versions & 14 rubygems

Version Path
enju_circulation-0.1.0.pre29 spec/dummy/db/migrate/125_create_donates.rb
enju_flower-0.1.0.pre11 spec/dummy/db/migrate/125_create_donates.rb
enju_ndl-0.1.0.pre25 spec/dummy/db/migrate/125_create_donates.rb
enju_flower-0.1.0.pre10 spec/dummy/db/migrate/125_create_donates.rb
enju_biblio-0.1.0.pre42 db/migrate/125_create_donates.rb
enju_leaf-1.1.0.rc3 spec/dummy/db/migrate/125_create_donates.rb
enju_library-0.1.0.pre24 spec/dummy/db/migrate/125_create_donates.rb
enju_subject-0.1.0.pre20 spec/dummy/db/migrate/125_create_donates.rb
enju_oai-0.1.0.pre10 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.1.0.pre28 spec/dummy/db/migrate/125_create_donates.rb
enju_leaf-1.1.0.rc2 spec/dummy/db/migrate/125_create_donates.rb
enju_ndl-0.1.0.pre24 spec/dummy/db/migrate/125_create_donates.rb
enju_biblio-0.1.0.pre41 db/migrate/125_create_donates.rb
enju_circulation-0.1.0.pre27 spec/dummy/db/migrate/125_create_donates.rb
enju_flower-0.1.0.pre9 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.1.0.pre26 spec/dummy/db/migrate/125_create_donates.rb
enju_library-0.1.0.pre23 spec/dummy/db/migrate/125_create_donates.rb
enju_ndl-0.1.0.pre23 spec/dummy/db/migrate/125_create_donates.rb
enju_subject-0.1.0.pre19 spec/dummy/db/migrate/125_create_donates.rb
enju_biblio-0.1.0.pre40 db/migrate/125_create_donates.rb