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.7.7 db/migrate/20111228231838_create_shipments.rb
piggybak-0.7.6 db/migrate/20111228231838_create_shipments.rb
piggybak-0.7.5 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.34 db/migrate/20111228231838_create_shipments.rb
piggybak_free_shipping_by_product-0.0.2 test/dummy/db/migrate/20120103020925_create_shipments.rb
piggybak_free_shipping_by_product-0.0.1 test/dummy/db/migrate/20120103020925_create_shipments.rb
piggybak-0.7.4 db/migrate/20111228231838_create_shipments.rb
piggybak-0.7.3 db/migrate/20111228231838_create_shipments.rb
piggybak-0.7.2 db/migrate/20111228231838_create_shipments.rb
piggybak-0.7.1 db/migrate/20111228231838_create_shipments.rb
piggybak-0.7.0 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.33 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.32 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.31 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.30 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.29 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.28 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.27 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.26 db/migrate/20111228231838_create_shipments.rb
piggybak-0.6.25 db/migrate/20111228231838_create_shipments.rb