Sha256: 8999faeec290cfad1d5f758e2a0b7e93c525867272d4304cfbe4433a6cf687b1

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 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.integer :amount
      t.boolean :finished, null: false, default: false

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opay-1.0.6 db/migrate/20130321114023_create_opay_payments.rb
opay-1.0.5 db/migrate/20130321114023_create_opay_payments.rb
opay-1.0.4 db/migrate/20130321114023_create_opay_payments.rb
opay-1.0.3 db/migrate/20130321114023_create_opay_payments.rb
opay-1.0.1 db/migrate/20130321114023_create_opay_payments.rb