Sha256: 8b2ff46f475659424e24c39426d93be47f3e0190f67bc90b426d538392965edc

Contents?: true

Size: 176 Bytes

Versions: 15

Compression:

Stored size: 176 Bytes

Contents

class AddForeignKeyToShelvesReferencingLibraries < ActiveRecord::Migration
  def change
    add_foreign_key :shelves, :libraries
    add_foreign_key :items, :shelves
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
enju_bookmark-0.2.2 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_bookmark-0.2.1 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_inventory-0.2.0 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_seed-0.3.0.beta.2 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_seed-0.3.0.beta.1 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_inter_library_loan-0.2.0.beta.2 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_inventory-0.2.0.beta.3 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_bookmark-0.2.0.beta.5 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_bookmark-0.2.0.beta.3 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_inventory-0.2.0.beta.2 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_bookmark-0.2.0.beta.2 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_inventory-0.2.0.beta.1 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
enju_bookmark-0.2.0.beta.1 spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb