Sha256: 62916c077fbcb065a9ad9662438b7d0dd777da51433fd81adc1d1046402d2067

Contents?: true

Size: 342 Bytes

Versions: 96

Compression:

Stored size: 342 Bytes

Contents

class CreateShipments < ActiveRecord::Migration
  def change
    create_table :shipments do |t|
      t.references :order, :null => false
      t.references :shipping_method, :null => false
      t.string :status, :null => false, :default => "new"
      t.decimal :total, :null => false, :default => 0.0

      t.timestamps
    end
  end
end

Version data entries

96 entries across 96 versions & 2 rubygems

Version Path
piggybak-0.6.3 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.2 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.1 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.0 db/migrate/20111228231838_create_shipments.rb
piggybak-0.5.5 db/migrate/20111228231838_create_shipments.rb
piggybak-0.5.4 db/migrate/20111228231838_create_shipments.rb
piggybak-0.5.3 db/migrate/20111228231838_create_shipments.rb
piggybak-0.5.2 db/migrate/20111228231838_create_shipments.rb
piggybak-0.5.1 db/migrate/20111228231838_create_shipments.rb
piggybak-0.5.0 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.39 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.38 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.37 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.36 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.35 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.34 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.33 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.32 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.31 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.30 db/migrate/20111228231838_create_shipments.rb