Sha256: 15ec1794401cfd7ebcfb92b9f58a1e88311e914064dabcbeb5da90857198f166

Contents?: true

Size: 372 Bytes

Versions: 34

Compression:

Stored size: 372 Bytes

Contents

class CreateShelves < ActiveRecord::Migration
  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
      t.datetime :deleted_at
    end
  end
end

Version data entries

34 entries across 30 versions & 13 rubygems

Version Path
enju_leaf-1.2.2 spec/dummy/db/migrate/069_create_shelves.rb
enju_manifestation_viewer-0.2.4 spec/dummy/db/migrate/069_create_shelves.rb
enju_library-0.2.5 db/migrate/069_create_shelves.rb
enju_manifestation_viewer-0.2.3 spec/dummy/db/migrate/069_create_shelves.rb
enju_biblio-0.2.5 spec/dummy/db/migrate/069_create_shelves.rb
enju_bookmark-0.2.2 spec/dummy/db/migrate/069_create_shelves.rb
enju_purchase_request-0.2.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/069_create_shelves.rb
enju_message-0.2.4 spec/dummy/db/migrate/069_create_shelves.rb
enju_event-0.2.3 spec/dummy/db/migrate/069_create_shelves.rb
enju_circulation-0.2.5 spec/dummy/db/migrate/069_create_shelves.rb
enju_seed-0.2.3 spec/dummy/db/migrate/069_create_shelves.rb
enju_library-0.2.4 db/migrate/069_create_shelves.rb
enju_bookmark-0.2.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_library-0.2.3 db/migrate/069_create_shelves.rb
enju_seed-0.2.2 spec/dummy/db/migrate/069_create_shelves.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/069_create_shelves.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/069_create_shelves.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/db/migrate/069_create_shelves.rb