Sha256: ac4ca600de6156198236ebe2457947c6b71fde8b632d9c11cd8d9efffe9de40f

Contents?: true

Size: 262 Bytes

Versions: 630

Compression:

Stored size: 262 Bytes

Contents

class AddBookstoreIdToItem < ActiveRecord::Migration
  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

630 entries across 622 versions & 23 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_manifestation_viewer-0.2.0/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_library-0.2.2 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_seed-0.2.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_biblio-0.2.1 db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_seed-0.3.0.beta.3 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_library-0.2.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_circulation-0.2.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_question-0.2.0 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_inventory-0.2.0 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_seed-0.3.0.beta.2 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_seed-0.3.0.beta.1 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_purchase_request-0.2.0 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_loc-0.2.0 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
enju_manifestation_viewer-0.2.0 spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb