Sha256: f091fdc122c6a5fedffeb7578c7215507d1bbd579397057ea93f695cc07254fa

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require 'skr/core/db/migration_helpers'

class CreateSkrVouchers < ActiveRecord::Migration
    def change

        create_skr_table "vouchers" do |t|
            t.skr_visible_id

            t.skr_reference :vendor,         single: true, null: false
            t.skr_reference :purchase_order, single: true, null: true

            t.skr_reference :terms,          to_table: 'payment_terms'

            t.string   "state",              null: false
            t.string   "refno"

            t.date     "confirmation_date",     null: true # starts out as non-confirmed
            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/20140400164729_create_skr_vouchers.rb