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.4.9 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.8 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.7.1 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.7 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.6 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.5 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.4 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.3 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.2 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.1 db/migrate/20111228231838_create_shipments.rb
piggybak-0.4.0 db/migrate/20111228231838_create_shipments.rb
piggybak-0.3.2 db/migrate/20111228231838_create_shipments.rb
piggybak-0.3.1 db/migrate/20111228231838_create_shipments.rb
piggybak-0.3.0 db/migrate/20111228231838_create_shipments.rb
piggybak-0.2.1 db/migrate/20111228231838_create_shipments.rb
piggybak-0.2.0 db/migrate/20111228231838_create_shipments.rb