Sha256: 969148820822898278ec9aa3bd9e70d8397a11482d41d6c67ce56c101ba177c0

Contents?: true

Size: 531 Bytes

Versions: 5

Compression:

Stored size: 531 Bytes

Contents

class CreateInvoices < ActiveRecord::Migration
  def self.up
    create_table  :invoices do |t|
      t.integer   :user_id,             :null=>false
      t.integer   :order_id,            :null=>false
      t.integer   :invoice_price,       :null=>false
      t.integer   :invoice_tax_price,   :null=>false
      t.integer   :invoice_total_price, :null=>false
      t.enum      :invoice_status,      :limit=>[:PENDING, :PAID, :OVERDUE, :CANCEL]
      t.timestamps
    end
  end

  def self.down
    drop_table :invoices
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 db/migrate/20090518105611_create_invoices.rb
smukherjee-openbill-0.1.6 db/migrate/20090518105611_create_invoices.rb
smukherjee-openbill-0.1.7 db/migrate/20090518105611_create_invoices.rb
openbill-0.1.5 db/migrate/20090518105611_create_invoices.rb
openbill-0.1.6 db/migrate/20090518105611_create_invoices.rb