Sha256: 96d7964a45223dfc23436a28c6a8898d3e06724342e38af66352ef42eb6134b7

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

require 'skr/db/migration_helpers'

class CreateSkrSalesOrders < ActiveRecord::Migration
    def change

        create_skr_table "sales_orders" do |t|
            t.skr_visible_id
            t.skr_reference :customer,         single: true
            t.skr_reference :location,         single: true
            t.skr_reference :shipping_address, to_table: 'addresses'
            t.skr_reference :billing_address,  to_table: 'addresses'
            t.skr_reference :terms,            to_table: 'payment_terms'
            t.date     "order_date",           null: false
            t.string   "state",                null: false
            t.boolean  "is_revised",           null: false, default: false
            t.string   "hash_code",            null: false
            t.boolean  "ship_partial",         null: false, default: false
            t.boolean  "is_complete",          null: false, default: false
            t.string   "po_num"
            t.text     "notes"
            t.hstore   "options", default: {}
            t.skr_track_modifications
        end

    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.1.7 db/migrate/20140322223912_create_skr_sales_orders.rb
stockor-0.1.5 db/migrate/20140322223912_create_skr_sales_orders.rb