Sha256: 04df6bec9e6f567e95175a0a14867dd7bd44a8a9f639e2354f99463d551cc324

Contents?: true

Size: 245 Bytes

Versions: 7

Compression:

Stored size: 245 Bytes

Contents

class CreateOrders < ActiveRecord::Migration
  def change
    create_table :orders do |t|
      t.integer :quantity
      t.decimal :price
      t.string :customer
      t.date :placed
      t.date :shipped

      t.timestamps
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rules-1.1.1 spec/dummy/db/migrate/20120821181654_create_orders.rb
rules-1.1.0 spec/dummy/db/migrate/20120821181654_create_orders.rb
rules-1.0.0 spec/dummy/db/migrate/20120821181654_create_orders.rb
rules-0.1.2 spec/dummy/db/migrate/20120821181654_create_orders.rb
rules-0.1.1 spec/dummy/db/migrate/20120821181654_create_orders.rb
rules-0.1.0 spec/dummy/db/migrate/20120821181654_create_orders.rb
rules-0.0.1 spec/dummy/db/migrate/20120821181654_create_orders.rb