Sha256: 0a6930ee4d163c01ac80b535243f8667a8c55eb545b0534d6b5223af437d2e13

Contents?: true

Size: 279 Bytes

Versions: 6

Compression:

Stored size: 279 Bytes

Contents

class CreateDonates < ActiveRecord::Migration[5.2]
  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

6 entries across 6 versions & 6 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/125_create_donates.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/125_create_donates.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/125_create_donates.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/125_create_donates.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/125_create_donates.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/125_create_donates.rb