Sha256: 32294a1e6aad915255b08cf946e21c0f34ab8601eda2bc163ca81bc5a3b631da

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

require 'skr/db/migration_helpers'

class CreateSkrVouchers < ActiveRecord::Migration
    def change

        create_skr_table "vouchers" do |t|
            t.skr_visible_id
            t.skr_state
            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.date     "confirmation_date",  null: true # starts out as non-confirmed
            t.string   "refno"
            t.skr_track_modifications
        end

    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stockor-0.5.0 db/migrate/20140400164729_create_skr_vouchers.rb
stockor-0.4.0 db/migrate/20140400164729_create_skr_vouchers.rb
stockor-0.3.0 db/migrate/20140400164729_create_skr_vouchers.rb
stockor-0.2 db/migrate/20140400164729_create_skr_vouchers.rb
stockor-0.1.9 db/migrate/20140400164729_create_skr_vouchers.rb