Sha256: b8abe3b286bbd69e4ee68cbd7d1adaf77a166f3dac709abcb1fb5da33ec1b25e

Contents?: true

Size: 588 Bytes

Versions: 6

Compression:

Stored size: 588 Bytes

Contents

class CreateInvoiceBarReceiptTemplates < ActiveRecord::Migration
  def change
    create_table :invoice_bar_receipt_templates do |t|
      t.string :name, :null => false, :unique => true
      t.date :issue_date, :default => nil
      t.string :contact_name, :default => nil
      t.integer :contact_ic, :default => nil
      t.string :contact_dic, :default => nil
      t.integer :user_id, :default => nil
      t.integer :account_id, :default => nil
      t.integer :amount, :default => nil

      t.timestamps
    end
    
    add_index :invoice_bar_receipt_templates, :name
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoice_bar-0.0.6 db/migrate/20121205185353_create_invoice_bar_receipt_templates.rb
invoice_bar-0.0.5 db/migrate/20121205185353_create_invoice_bar_receipt_templates.rb
invoice_bar-0.0.4 db/migrate/20121205185353_create_invoice_bar_receipt_templates.rb
invoice_bar-0.0.3 db/migrate/20121205185353_create_invoice_bar_receipt_templates.rb
invoice_bar-0.0.2 db/migrate/20121205185353_create_invoice_bar_receipt_templates.rb
invoice_bar-0.0.1 db/migrate/20121205185353_create_invoice_bar_receipt_templates.rb