Sha256: d6853e615712d8a3249cebcc821a17602111acec86f09ea38ad1945ebf51d990

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

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

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.4 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_seed-0.3.0.beta.3 spec/dummy/db/migrate/20120319173203_create_accepts.rb