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