Sha256: e10c2d52f4707011694397983b1602173dda9ecad94ee31a1f241cb10fdf1268

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

# This migration comes from invoice_bar (originally 20121012142428)
class CreateInvoiceBarAccounts < ActiveRecord::Migration
  def change
    create_table :invoice_bar_accounts do |t|
      t.string :name, null: false
      t.integer :user_id, null: false
      t.string :bank_account_number, default: nil
      t.string :iban, default: nil
      t.string :swift, default: nil
      t.integer :amount, null: false, default: 0
      t.integer :currency_id, null: false, default: 1

      t.timestamps
    end

    add_index :invoice_bar_accounts, :name
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
invoice_bar-0.0.11 test/dummy/db/migrate/20160806120903_create_invoice_bar_accounts.invoice_bar.rb
invoice_bar-0.0.10 test/dummy/db/migrate/20160806120903_create_invoice_bar_accounts.invoice_bar.rb
invoice_bar-0.0.9 test/dummy/db/migrate/20160806120903_create_invoice_bar_accounts.invoice_bar.rb