Sha256: 3e9c1c6bcfffdd366bee79653f1f7d328124aab38e66dccaa2310008ec8d4c05

Contents?: true

Size: 267 Bytes

Versions: 6

Compression:

Stored size: 267 Bytes

Contents

class AddBookstoreIdToItem < ActiveRecord::Migration[5.2]
  def self.up
    add_column :items, :bookstore_id, :integer
    add_index :items, :bookstore_id
  end

  def self.down
    remove_index :items, :bookstore_id
    remove_column :items, :bookstore_id
  end
end

Version data entries

6 entries across 6 versions & 6 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb