Sha256: 201602a4e729359f8a3db2a839d8f94bb32ca1a1a0346d9cbec11ce20696f6a4

Contents?: true

Size: 478 Bytes

Versions: 2

Compression:

Stored size: 478 Bytes

Contents

class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.belongs_to :user
      t.string :status,
        :voucher,
        :transaction_number,
        :reference,
        :payment_type
      t.float :voucher_discount,
        :special_offer_discount,
        :patronage_discount_price
      t.boolean :payment_plans, :null => false, :default => false
      t.timestamps
    end
  end

  def self.down
    drop_table :orders
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 db/migrate/20091009134714_create_orders.rb
forgeos_commerce-1.9.0 db/migrate/20091009134714_create_orders.rb