Sha256: ad9a5e8d14fee4a24f5f093c07fc1cace0d14f222d231967a8bd4c0c6eafae80

Contents?: true

Size: 348 Bytes

Versions: 10

Compression:

Stored size: 348 Bytes

Contents

class CreateShelves < ActiveRecord::Migration[5.2]
  def change
    create_table :shelves do |t|
      t.string :name, null: false
      t.text :display_name
      t.text :note
      t.references :library, index: true, null: false
      t.integer :items_count, default: 0, null: false
      t.integer :position
      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 10 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_message-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_biblio-0.4.0.rc.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_library-0.4.0.rc.1 db/migrate/069_create_shelves.rb
enju_seed-0.4.0.rc.2 spec/dummy/db/migrate/069_create_shelves.rb