Sha256: 6b712836172fa614001f45d38a28f30a556676577b132da9319662b5667ccbfa

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

class CreateOpayPayments < ActiveRecord::Migration
  def change
    create_table :opay_payments do |t|
      t.references :payable, polymorphic: true
      t.string :session_id
      t.string :provider
      t.float :amount
      t.boolean :finished, null: false, default: false

      t.timestamps
    end
    add_index :opay_payments, [:payable_id, :payable_type]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opay-1.0.0 db/migrate/20130321114023_create_opay_payments.rb
opay-1.0.0.beta db/migrate/20130321114023_create_opay_payments.rb