Sha256: 77c5c40ee828339deb0bf51d1e1a51500e14746f8411511666889ff77d0c1f1e

Contents?: true

Size: 255 Bytes

Versions: 9

Compression:

Stored size: 255 Bytes

Contents

class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.integer :customer_id
      t.integer :order_number
      t.string :memo

      t.timestamps
    end
  end

  def self.down
    drop_table :orders
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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