Sha256: 7449cfb700051a022c6e4f221ffaf4614d08c990e8fbb6ac9b6783a8684902fe

Contents?: true

Size: 280 Bytes

Versions: 413

Compression:

Stored size: 280 Bytes

Contents

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

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

Version data entries

413 entries across 405 versions & 22 rubygems

Version Path
enju_leaf-1.2.1 spec/dummy/db/migrate/125_create_donates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/dummy/db/migrate/125_create_donates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/125_create_donates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/db/migrate/125_create_donates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/125_create_donates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_manifestation_viewer-0.2.0/spec/dummy/db/migrate/125_create_donates.rb
enju_library-0.2.2 spec/dummy/db/migrate/125_create_donates.rb
enju_seed-0.2.1 spec/dummy/db/migrate/125_create_donates.rb
enju_biblio-0.2.1 db/migrate/125_create_donates.rb
enju_seed-0.3.0.beta.3 spec/dummy/db/migrate/125_create_donates.rb
enju_library-0.2.1 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.2.1 spec/dummy/db/migrate/125_create_donates.rb
enju_question-0.2.0 spec/dummy/db/migrate/125_create_donates.rb
enju_inventory-0.2.0 spec/dummy/db/migrate/125_create_donates.rb
enju_seed-0.3.0.beta.2 spec/dummy/db/migrate/125_create_donates.rb
enju_purchase_request-0.2.0 spec/dummy/db/migrate/125_create_donates.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/125_create_donates.rb
enju_loc-0.2.0 spec/dummy/db/migrate/125_create_donates.rb
enju_manifestation_viewer-0.2.0 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.2.0 spec/dummy/db/migrate/125_create_donates.rb