Sha256: 83693d93c27ebb8307b67371264ae5cbc946c279ada2f435a6d839fbc6628e72

Contents?: true

Size: 305 Bytes

Versions: 9

Compression:

Stored size: 305 Bytes

Contents

class CreateWithdraws < ActiveRecord::Migration[4.2]
  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

9 entries across 9 versions & 3 rubygems

Version Path
enju_question-0.3.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_subject-0.3.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_question-0.3.0 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_oai-0.3.0 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_subject-0.3.0 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_subject-0.3.0.rc.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_oai-0.3.0.beta.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_question-0.3.0.beta.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb
enju_subject-0.3.0.beta.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb