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.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/spec/dummy/db/migrate/069_create_shelves.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/db/migrate/069_create_shelves.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/069_create_shelves.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/db/migrate/069_create_shelves.rb
enju_library-0.2.2 db/migrate/069_create_shelves.rb
enju_seed-0.2.1 spec/dummy/db/migrate/069_create_shelves.rb
enju_library-0.2.1 db/migrate/069_create_shelves.rb
enju_inventory-0.2.0 spec/dummy/db/migrate/069_create_shelves.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/069_create_shelves.rb
enju_ndl-0.2.0 spec/dummy/db/migrate/069_create_shelves.rb
enju_library-0.2.0 db/migrate/069_create_shelves.rb
enju_seed-0.2.0 spec/dummy/db/migrate/069_create_shelves.rb
enju_library-0.2.0.beta.10 db/migrate/069_create_shelves.rb
enju_ndl-0.2.0.beta.3 spec/dummy/db/migrate/069_create_shelves.rb