Sha256: 1d33b0cd604fdab5920989d39cd04f8a24138bda37d1ec4a972ac75cfd3a6e39
Contents?: true
Size: 710 Bytes
Versions: 8
Compression:
Stored size: 710 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
8 entries across 8 versions & 5 rubygems