Sha256: 9aaf58a968f273875aaf655f7e12d5744d58e201ac8659831fab3749779de0bb

Contents?: true

Size: 680 Bytes

Versions: 159

Compression:

Stored size: 680 Bytes

Contents

class CreateItems < ActiveRecord::Migration[4.2]
  def change
    create_table :items do |t|
      t.string :call_number
      t.string :item_identifier
      t.timestamps
      t.datetime :deleted_at
      t.integer :shelf_id, default: 1, null: false
      t.boolean :include_supplements, default: false, null: false
      t.text :note
      t.string :url
      t.integer :price
      t.integer :lock_version, default: 0, null: false
      t.integer :required_role_id, default: 1, null: false
      t.integer :required_score, default: 0, null: false
    end
    add_index :items, :shelf_id
    add_index :items, :item_identifier
    add_index :items, :required_role_id
  end
end

Version data entries

159 entries across 159 versions & 19 rubygems

Version Path
enju_seed-0.3.0.rc.1 spec/dummy/db/migrate/006_create_items.rb
enju_seed-0.3.0.beta.7 spec/dummy/db/migrate/006_create_items.rb
enju_grid-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_inter_library_loan-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_inventory-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_oai-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_news-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_circulation-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_question-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_event-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_nii-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_ndl-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_bookmark-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_subject-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_message-0.3.0.beta.1 spec/dummy/db/migrate/006_create_items.rb
enju_manifestation_viewer-0.3.0.beta.2 spec/dummy/db/migrate/006_create_items.rb
enju_library-0.3.0.beta.2 spec/dummy/db/migrate/006_create_items.rb
enju_seed-0.3.0.beta.6 spec/dummy/db/migrate/006_create_items.rb
enju_biblio-0.3.0.beta.2 db/migrate/006_create_items.rb