Sha256: d3a0210e68bfa896fd293391c0a2d0d28eeb9819eba55ede9b9b940d5b8a8e65

Contents?: true

Size: 479 Bytes

Versions: 6

Compression:

Stored size: 479 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
invoice_bar-0.0.6 db/migrate/20121012142442_create_invoice_bar_items.rb
invoice_bar-0.0.5 db/migrate/20121012142442_create_invoice_bar_items.rb
invoice_bar-0.0.4 db/migrate/20121012142442_create_invoice_bar_items.rb
invoice_bar-0.0.3 db/migrate/20121012142442_create_invoice_bar_items.rb
invoice_bar-0.0.2 db/migrate/20121012142442_create_invoice_bar_items.rb
invoice_bar-0.0.1 db/migrate/20121012142442_create_invoice_bar_items.rb