Sha256: e45f8d1acbeb3a972077d5786079cfca81b925699b09c8bb75a64005fe0e547d

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

class CreateInvoicePayments < ActiveRecord::Migration
    def change
        add_column :skr_payments, :invoice_id, :integer
        add_column :skr_payments, :metadata,   :jsonb, default: {}
        remove_column :skr_invoices, :amount_paid,  :decimal, precision: 15, scale: 2
        change_column_null :skr_payments, :category_id, true
        change_column_null :skr_payments, :check_number, true
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.5.0 db/migrate/20160608023553_create_invoice_payments.rb
stockor-0.4.0 db/migrate/20160608023553_create_invoice_payments.rb