Sha256: db0609330ffa047c04e52851e6afb3a256a43cccb5c13b9c8b4d223ad3bc2fc0
Contents?: true
Size: 473 Bytes
Versions: 6
Compression:
Stored size: 473 Bytes
Contents
class ChangeTxnTypeToInt < ActiveRecord::Migration def self.up if (ActiveRecord::Migration.connection.adapter_name == "PostgreSQL") && (postgresql_version > 80000) execute(' ALTER TABLE "creditcard_txns" ALTER COLUMN "txn_type" TYPE integer USING to_number(creditcard_txns.txn_type,\'S9999999\') ') else change_column :creditcard_txns, :txn_type, :integer end end def self.down end end
Version data entries
6 entries across 6 versions & 2 rubygems