Sha256: 3b04a0daa13a47e69a4f79f40f03696f32b5d49a5b0cea167ee5133bcd550c29

Contents?: true

Size: 673 Bytes

Versions: 4

Compression:

Stored size: 673 Bytes

Contents

class CreateTxns < ActiveRecord::Migration
  def self.up
	  create_table "txns", :force => true do |t|
	    t.column "order_id",      :integer
	    t.column "amount",        :decimal,  :precision => 8, :scale => 2, :default => 0.0, :null => false
	    t.column "txn_type",      :string
	    t.column "response_code", :string
	    t.column "cc_number",     :text
	    t.column "cc_exp_month",  :text
	    t.column "cc_exp_year",   :text
	    t.column "avs_response",  :text
	    t.column "cvv_response",  :text
	    t.column "created_at",    :datetime
	    t.column "updated_at",    :datetime
	  end
  end

  def self.down
    drop_table "txns"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/db/migrate/013_create_txns.rb
railscart-0.0.2 starter_app/vendor/plugins/railscart/db/migrate/013_create_txns.rb
railscart-0.0.4 starter_app/vendor/plugins/railscart/db/migrate/010_create_txns.rb
railscart-0.0.3 starter_app/vendor/plugins/railscart/db/migrate/013_create_txns.rb