Sha256: e3b2e0b3dc84a12385c7cfc8484028c84c42623a88a0e6b193dce5e3198aae17

Contents?: true

Size: 762 Bytes

Versions: 10

Compression:

Stored size: 762 Bytes

Contents

class CreatePayments < ActiveRecord::Migration
  def change
    create_table :payments do |t|
      t.integer    :foreign_id
      t.belongs_to :provider
      t.belongs_to :collection
      t.string     :account
      t.string     :fields
      t.string     :banknotes
      t.string     :limit
      t.string     :commissions
      t.text       :receipt_template
      t.boolean    :error, :default => false
      t.boolean    :checked, :default => false
      t.boolean    :processed, :default => false
      t.boolean    :failed, :default => false

      t.decimal    :paid_amount, :precision => 38, :scale => 2
      t.decimal    :commission_amount, :precision => 38, :scale => 2

      t.timestamps
    end

    add_index :payments, :provider_id
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
smartkiosk-client-0.0.10 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.9 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.8 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.7 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.6 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.5 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.4 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.3 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.2 db/migrate/20130106181548_create_payments.rb
smartkiosk-client-0.0.1 db/migrate/20130106181548_create_payments.rb