Sha256: 973951fbca88ce0d506ddb1bba92c4e8958c8eed973393b0a42ff4ddfa492c51
Contents?: true
Size: 1.06 KB
Versions: 4
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_state 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.boolean "is_tax_exempt", null: false, default: false t.date "order_date", 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.string "po_num" t.text "notes" t.string "form" t.jsonb "options", default: {} t.skr_track_modifications end end end
Version data entries
4 entries across 4 versions & 1 rubygems