Sha256: 8e0a86394b00ed699041372b4330536d67a97f91a18bd2e826c3047695f4024e
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require 'skr/core/db/migration_helpers' class CreateSkrInvoices < ActiveRecord::Migration def change create_skr_table "invoices" do |t| t.skr_visible_id 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 "state", null: false 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-core-0.2 | db/migrate/20140327224000_create_skr_invoices.rb |