Sha256: d863304e45b0ccb68df33f17dbb86d810e9627a3764c55fe0684882cc7317c41

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

# This migration comes from invoice_bar (originally 20121012142442)
class CreateInvoiceBarItems < ActiveRecord::Migration
  def change
    create_table :invoice_bar_items do |t|
      t.string :name, null: false
      t.integer :price, null: false
      t.string :unit, default: nil
      t.integer :number, default: nil
      t.integer :amount, null: false
      t.integer :itemable_id, null: false
      t.string :itemable_type, null: false

      t.timestamps
    end

    add_index :invoice_bar_items, :name
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
invoice_bar-0.0.11 test/dummy/db/migrate/20160806120904_create_invoice_bar_items.invoice_bar.rb
invoice_bar-0.0.10 test/dummy/db/migrate/20160806120904_create_invoice_bar_items.invoice_bar.rb
invoice_bar-0.0.9 test/dummy/db/migrate/20160806120904_create_invoice_bar_items.invoice_bar.rb