Sha256: 1ccbbf4536a006fb64e399905cbd197cebbd2fc94ed831309f9a134535c37456

Contents?: true

Size: 702 Bytes

Versions: 6

Compression:

Stored size: 702 Bytes

Contents

class CreateInvoiceBarReceipts < ActiveRecord::Migration
  def change
    create_table :invoice_bar_receipts do |t|
      t.string :number, :null => false
      t.date :issue_date, :null => false
      t.string :contact_name, :null => false
      t.integer :contact_ic, :default => nil
      t.string :contact_dic, :default => nil
      t.integer :user_id, :null => false
      t.integer :account_id, :null => false
      t.integer :amount, :null => false
      t.boolean :issuer, :null => false, :default => true

      t.timestamps
    end
    
    add_index :invoice_bar_receipts, :number
    add_index :invoice_bar_receipts, :contact_name
    add_index :invoice_bar_receipts, :contact_ic
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoice_bar-0.0.6 db/migrate/20121205185321_create_invoice_bar_receipts.rb
invoice_bar-0.0.5 db/migrate/20121205185321_create_invoice_bar_receipts.rb
invoice_bar-0.0.4 db/migrate/20121205185321_create_invoice_bar_receipts.rb
invoice_bar-0.0.3 db/migrate/20121205185321_create_invoice_bar_receipts.rb
invoice_bar-0.0.2 db/migrate/20121205185321_create_invoice_bar_receipts.rb
invoice_bar-0.0.1 db/migrate/20121205185321_create_invoice_bar_receipts.rb