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.0.57 spec/dummy/db/migrate/125_create_donates.rb
enju_resource_merge-0.0.13 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.56 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.55 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.54 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.53 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.52 spec/dummy/db/migrate/125_create_donates.rb
enju_biblio-0.0.2 db/migrate/125_create_donates.rb
enju_biblio-0.0.1 db/migrate/125_create_donates.rb
enju_resource_merge-0.0.12 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.51 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.50 spec/dummy/db/migrate/125_create_donates.rb
enju_resource_merge-0.0.11 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.49 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.0.48 spec/dummy/db/migrate/125_create_donates.rb