Sha256: 1284a6e83cc23f4fd02da9290e725a44955a43480b4ec5be9decb0ee783ac9e6
Contents?: true
Size: 989 Bytes
Versions: 5
Compression:
Stored size: 989 Bytes
Contents
class CreateInvoiceBarInvoices < ActiveRecord::Migration def change create_table :invoice_bar_invoices do |t| t.string :number, null: false t.date :issue_date, null: false t.date :due_date, null: false t.string :contact_name, null: false t.integer :contact_tax_id, default: nil t.string :contact_tax_id2, default: nil t.integer :user_id, null: false t.integer :payment_identification_number, default: nil t.integer :account_id, null: false t.integer :amount, null: false t.boolean :sent, null: false, default: false t.boolean :paid, null: false, default: false t.boolean :issuer, null: false, default: true t.integer :receipt_id, default: nil t.timestamps end add_index :invoice_bar_invoices, :number add_index :invoice_bar_invoices, :contact_name add_index :invoice_bar_invoices, :contact_tax_id add_index :invoice_bar_invoices, :payment_identification_number end end
Version data entries
5 entries across 5 versions & 1 rubygems