Sha256: 1d5eae85b07269c27595e628bdf04f1ec0bdd451413a9683918aea75acb76d07

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

class CreateCheckedItems < ActiveRecord::Migration[5.0]
  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

1 entries across 1 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.4 spec/dummy/db/migrate/121_create_checked_items.rb