class CreateTransactions < ActiveRecord::Migration def self.up create_table :transactions do |t| t.integer :invoice_id, :null=>false t.integer :paymentgateway_id, :null=>false t.integer :transaction_price t.text :data_sent t.text :data_recieved t.string :status, :limit=>255 t.timestamps end end def self.down drop_table :transactions end end