Sha256: 819955d027963b9fe3327ce00b1d3d4772eb6af90a79ef3177c91decbee9c6d5

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

class CreatePayments < ActiveRecord::Migration
  def self.up
    create_table :payments do |t|
      t.integer   :client_id
      t.integer   :payment_method_id
      t.text      :payment_method_identifier  # Check No./Card Name/last four
      t.decimal   :amount, :precision => 10, :scale => 2
      t.timestamp :paid_on

      t.timestamps
    end

  end

  def self.down
    drop_table :payments
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 db/migrate/015_create_payments.rb
brisk-bills-0.8.1 db/migrate/015_create_payments.rb