Sha256: 0354e9f5886752ab61b74834ac743ad4316accd77993822c7c1fa51e2a845c28

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

class CreateRightnowOmsOrderItems < ActiveRecord::Migration
  def change
    create_table :rightnow_oms_order_items do |t|
      t.string :name
      t.decimal :price, precision: 10, scale: 2
      t.integer :quantity
      t.integer :parent_id
      t.belongs_to :order

      t.timestamps
    end
    add_index :rightnow_oms_order_items, :parent_id
    add_index :rightnow_oms_order_items, :order_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rightnow_oms-0.1.6 db/migrate/20120214081113_create_rightnow_oms_order_items.rb
rightnow_oms-0.1.4 db/migrate/20120214081113_create_rightnow_oms_order_items.rb
rightnow_oms-0.1.3 db/migrate/20120214081113_create_rightnow_oms_order_items.rb