Sha256: e4b249cd1c285bdbfddd7238a08b2bd916219dc10d6d3af5d983878dd14be0cb

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 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 :street_1, limit: 60
      t.string :street_2, limit: 60
      t.string :city, limit: 60
      t.string :state, limit: 3
      t.string :postal_code, limit: 11
      t.money :shipping
      t.money :tax
      t.money :total
      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bodega-0.4.12 db/migrate/20121111170337_create_bodega_orders.rb