Sha256: 14a7b9ef843ef4cf0c775acf96e6adf058f02504c0dbfce91a57305f50a48ded

Contents?: true

Size: 633 Bytes

Versions: 3

Compression:

Stored size: 633 Bytes

Contents

# This migration comes from invoice_bar (originally 20121205185353)
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_tax_id, default: nil
      t.string :contact_tax_id2, 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

3 entries across 3 versions & 1 rubygems

Version Path
invoice_bar-0.0.11 test/dummy/db/migrate/20160806120909_create_invoice_bar_receipt_templates.invoice_bar.rb
invoice_bar-0.0.10 test/dummy/db/migrate/20160806120909_create_invoice_bar_receipt_templates.invoice_bar.rb
invoice_bar-0.0.9 test/dummy/db/migrate/20160806120909_create_invoice_bar_receipt_templates.invoice_bar.rb