Sha256: 81939612ffbd2c012598e7dc3f8f83809aa5a8f05a82ee59c8e4b37fc28ad0cb

Contents?: true

Size: 402 Bytes

Versions: 423

Compression:

Stored size: 402 Bytes

Contents

class CreateCheckedItems < ActiveRecord::Migration
  def self.up
    create_table :checked_items do |t|
      t.integer :item_id, :null => false
      t.integer :basket_id, :null => false
      t.datetime :due_date, :null => false

      t.timestamps
    end
    add_index :checked_items, :item_id
    add_index :checked_items, :basket_id
  end

  def self.down
    drop_table :checked_items
  end
end

Version data entries

423 entries across 416 versions & 12 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/dummy/db/migrate/121_create_checked_items.rb
enju_library-0.2.2 spec/dummy/db/migrate/121_create_checked_items.rb
enju_seed-0.2.1 spec/dummy/db/migrate/121_create_checked_items.rb
enju_biblio-0.2.1 spec/dummy/db/migrate/121_create_checked_items.rb
enju_library-0.2.1 spec/dummy/db/migrate/121_create_checked_items.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_event-0.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_oai-0.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_ndl-0.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_library-0.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_biblio-0.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_seed-0.2.0 spec/dummy/db/migrate/121_create_checked_items.rb
enju_leaf-1.2.0.beta.4 spec/dummy/db/migrate/121_create_checked_items.rb