Sha256: 983293f82ab35ec67b70dd1dc6d23652e5e76a737a6be1bb713c117a237a976c

Contents?: true

Size: 338 Bytes

Versions: 266

Compression:

Stored size: 338 Bytes

Contents

class AddCirculationStatusIdToItem < ActiveRecord::Migration
  def change
    add_column :items, :circulation_status_id, :integer, :default => 5, :null => false
    add_column :items, :checkout_type_id, :integer, :default => 1, :null => false
    add_index :items, :circulation_status_id
    add_index :items, :checkout_type_id
  end
end

Version data entries

266 entries across 259 versions & 12 rubygems

Version Path
enju_biblio-0.1.0.pre33 spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
enju_biblio-0.1.0.pre32 spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
enju_circulation-0.1.0.pre22 db/migrate/20130416054135_add_circulation_status_id_to_item.rb
enju_library-0.1.0.pre21 spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
enju_circulation-0.1.0.pre21 db/migrate/20130416054135_add_circulation_status_id_to_item.rb
enju_biblio-0.1.0.pre31 spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb