Sha256: 75ca65423d3f4bba9713dcc3aa92fc39103a7239e55020d6606c74d3ea478871

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

require 'money-rails'

class CreateBodegaOrders < ActiveRecord::Migration
  def change
    create_table :bodega_orders do |t|
      t.belongs_to :customer, polymorphic: true
      t.integer :status
      t.string :identifier, limit: 20
      t.string :payment_id
      t.string :shipping_rate_code
      t.string :shipping_rate_name, limit: 50
      t.text :shipping_rates
      t.string :tracking_number
      t.string :postal_code, limit: 11
      t.money :shipping
      t.money :tax
      t.money :total
      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bodega-0.4.9 db/migrate/20121111170337_create_bodega_orders.rb
bodega-0.4.4 db/migrate/20121111170337_create_bodega_orders.rb
bodega-0.4.3 db/migrate/20121111170337_create_bodega_orders.rb
bodega-0.4.2 db/migrate/20121111170337_create_bodega_orders.rb