Sha256: e1a00ee31ca408bded5472f5d7f07f61a5bb2e636ed3c91bca8d425473bdb019

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

class CreateWithdraws < ActiveRecord::Migration[5.1]
  def change
    create_table :withdraws do |t|
      t.references :basket, foreign_key: {on_delete: :nullify}
      t.references :item, foreign_key: true, type: :uuid
      t.integer :librarian_id

      t.timestamps null: false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_seed-0.4.0.beta.1 spec/dummy/db/migrate/20150924115059_create_withdraws.rb