Sha256: 0b299d1b07ff81fa5de32b8bdd15ac59e9c3eed54aa6734bec27f8c194e86def

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

require 'money-rails'

class CreateBodegaOrders < ActiveRecord::Migration
  def change
    create_table :bodega_orders do |t|
      t.belongs_to :customer, polymorphic: true
      t.string :identifier, limit: 20
      t.string :payment_id
      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.3.0 db/migrate/20121111170337_create_bodega_orders.rb