Sha256: 86fc216b5434e64876db631db221f4892472a76275715780721fbd5af0a7c1b6
Contents?: true
Size: 1005 Bytes
Versions: 1
Compression:
Stored size: 1005 Bytes
Contents
require 'skr/db/migration_helpers' class CreateSkrInvoices < ActiveRecord::Migration def change create_skr_table "invoices" do |t| t.skr_visible_id t.skr_state t.skr_reference :terms, to_table: 'payment_terms' t.skr_reference :customer, single: true t.skr_reference :location, single: true t.skr_reference :sales_order, single: true, null: true t.skr_reference :pick_ticket, single: true, null: true t.skr_reference :shipping_address, to_table: 'addresses' t.skr_reference :billing_address, to_table: 'addresses' t.skr_currency :amount_paid, null: false, default: 0.0 t.string "hash_code", null: false t.date "invoice_date", null: false t.string "po_num" t.hstore "options", default: {} t.skr_track_modifications end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.1.9 | db/migrate/20140327224000_create_skr_invoices.rb |