Sha256: 96c64e0971c8e9d8b85136100c1f2e997f263df3bdb511fa22eeafb5165ae11a

Contents?: true

Size: 300 Bytes

Versions: 110

Compression:

Stored size: 300 Bytes

Contents

class CreateWithdraws < ActiveRecord::Migration
  def change
    create_table :withdraws do |t|
      t.integer :basket_id
      t.integer :item_id
      t.integer :librarian_id

      t.timestamps null: false
    end
    add_index :withdraws, :basket_id
    add_index :withdraws, :item_id
  end
end

Version data entries

110 entries across 107 versions & 21 rubygems

Version Path
enju_biblio-0.2.4 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_subject-0.2.3 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_manifestation_viewer-0.2.2 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_message-0.2.3 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_event-0.2.2 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_circulation-0.2.4 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_nii-0.2.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_subject-0.2.2 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_circulation-0.2.3 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_message-0.2.2 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_grid-0.2.0 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_manifestation_viewer-0.2.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_event-0.2.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_message-0.2.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_subject-0.2.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/20150924115059_create_withdraws.rb