Sha256: 04276c52188af492561964784523793562d649246953b776922d4c15ddf63024

Contents?: true

Size: 240 Bytes

Versions: 9

Compression:

Stored size: 240 Bytes

Contents

class CreateOrderItems < ActiveRecord::Migration
  def self.up
    create_table :order_items do |t|
      t.integer :order_id
      t.integer :item_id

      t.timestamps
    end
  end

  def self.down
    drop_table :order_items
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datatable-0.2pre6 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.2pre5 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.2pre4 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.2pre3 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.2pre2 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.2pre1 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.1.1alpha4 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.1.1alpha1 example_app/db/migrate/20110429190005_create_order_items.rb
datatable-0.1.0alpha2 example_app/db/migrate/20110429190005_create_order_items.rb