Sha256: d86d26679da682732deeb92966bb75e3bb1c0725c0e6fc0d2d106d5e90795665

Contents?: true

Size: 489 Bytes

Versions: 12

Compression:

Stored size: 489 Bytes

Contents

class CreatePuntoPagosRailsTransactions < ActiveRecord::Migration
  def change
    create_table :punto_pagos_rails_transactions do |t|
      t.references :payable, polymorphic: true
      t.string :token
      t.integer :amount
      t.string :error
      t.string :state

      t.timestamps null: false
    end

    add_index(:punto_pagos_rails_transactions,
      [:payable_id, :payable_type],
      name: "index_punto_pagos_rails_transactions_on_payable",
      unique: true)
  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
punto_pagos_rails-1.3.0 spec/dummy/db/migrate/20160605212231_create_punto_pagos_rails_transactions.rb
punto_pagos_rails-1.3.0 lib/generators/punto_pagos_rails/install/templates/transactions_migration.rb
punto_pagos_rails-1.2.0 lib/generators/punto_pagos_rails/install/templates/transactions_migration.rb
punto_pagos_rails-1.2.0 spec/dummy/db/migrate/20160605212231_create_punto_pagos_rails_transactions.rb
punto_pagos_rails-1.1.0 lib/generators/punto_pagos_rails/install/templates/transactions_migration.rb
punto_pagos_rails-1.1.0 spec/dummy/db/migrate/20160605212231_create_punto_pagos_rails_transactions.rb
punto_pagos_rails-1.0.2 lib/generators/punto_pagos_rails/install/templates/transactions_migration.rb
punto_pagos_rails-1.0.2 spec/dummy/db/migrate/20160605212231_create_punto_pagos_rails_transactions.rb
punto_pagos_rails-1.0.1 spec/dummy/db/migrate/20160605212231_create_punto_pagos_rails_transactions.rb
punto_pagos_rails-1.0.1 lib/generators/punto_pagos_rails/install/templates/transactions_migration.rb
punto_pagos_rails-1.0.0 lib/generators/punto_pagos_rails/install/templates/transactions_migration.rb
punto_pagos_rails-1.0.0 spec/dummy/db/migrate/20160605212231_create_punto_pagos_rails_transactions.rb